rename field utils to fields

This commit is contained in:
Yuri Kuznetsov
2021-02-24 10:58:42 +02:00
parent 30a9c8c90e
commit 77a7fffcb2
27 changed files with 45 additions and 45 deletions
@@ -29,7 +29,7 @@
namespace Espo\Classes\AddressFormatters;
use Espo\Core\FieldUtils\Address\{
use Espo\Core\Fields\Address\{
AddressFormatter,
Address,
};
@@ -29,7 +29,7 @@
namespace Espo\Classes\AddressFormatters;
use Espo\Core\FieldUtils\Address\{
use Espo\Core\Fields\Address\{
AddressFormatter,
Address,
};
@@ -29,7 +29,7 @@
namespace Espo\Classes\AddressFormatters;
use Espo\Core\FieldUtils\Address\{
use Espo\Core\Fields\Address\{
AddressFormatter,
Address,
};
@@ -29,7 +29,7 @@
namespace Espo\Classes\AddressFormatters;
use Espo\Core\FieldUtils\Address\{
use Espo\Core\Fields\Address\{
AddressFormatter,
Address,
};
@@ -40,10 +40,10 @@ use Espo\Core\{
ORM\EntityManager,
Utils\FieldUtil,
Utils\Metadata,
FieldUtils\Currency\CurrencyConfigDataProvider,
FieldUtils\Currency\CurrencyConverter,
FieldUtils\Currency\Currency,
FieldUtils\Currency\CurrencyRates,
Fields\Currency\CurrencyConfigDataProvider,
Fields\Currency\CurrencyConverter,
Fields\Currency\Currency,
Fields\Currency\CurrencyRates,
};
use Espo\{
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Address;
namespace Espo\Core\Fields\Address;
/**
* An address value.
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Address;
namespace Espo\Core\Fields\Address;
use StdClass;
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Address;
namespace Espo\Core\Fields\Address;
/**
* An address value builder.
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Address;
namespace Espo\Core\Fields\Address;
use Espo\{
ORM\Entity,
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Address;
namespace Espo\Core\Fields\Address;
/**
* An address formatter.
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Address;
namespace Espo\Core\Fields\Address;
use RuntimeException;
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Address;
namespace Espo\Core\Fields\Address;
use Espo\Core\Utils\Metadata;
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Currency;
namespace Espo\Core\Fields\Currency;
use RuntimeException;
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Currency;
namespace Espo\Core\Fields\Currency;
use StdClass;
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Currency;
namespace Espo\Core\Fields\Currency;
use Espo\Core\Utils\Config;
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Currency;
namespace Espo\Core\Fields\Currency;
use RuntimeException;
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Currency;
namespace Espo\Core\Fields\Currency;
use Espo\{
ORM\Entity,
@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\FieldUtils\Currency;
namespace Espo\Core\Fields\Currency;
use RuntimeException;
@@ -41,10 +41,10 @@ use Espo\Core\{
ORM\EntityManager,
Utils\FieldUtil,
Utils\Metadata,
FieldUtils\Currency\CurrencyConfigDataProvider,
FieldUtils\Currency\CurrencyConverter,
FieldUtils\Currency\Currency,
FieldUtils\Currency\CurrencyRates,
Fields\Currency\CurrencyConfigDataProvider,
Fields\Currency\CurrencyConverter,
Fields\Currency\Currency,
Fields\Currency\CurrencyRates,
};
use Espo\{
+1 -1
View File
@@ -2643,7 +2643,7 @@ class Record implements Crud,
}
/**
* @deprecated Use `Espo\Core\FieldUtils\Currency\CurrencyConverter`.
* @deprecated Use `Espo\Core\Fields\Currency\CurrencyConverter`.
*/
public function getConvertCurrencyValues(
Entity $entity, string $targetCurrency, string $baseCurrency,
@@ -40,8 +40,8 @@ use Espo\Core\{
FileStorage\Manager as FileStorageManager,
Utils\File\Manager as FileManager,
ORM\EntityManager,
FieldUtils\Address\Address,
FieldUtils\Address\AddressFormatterFactory,
Fields\Address\Address,
Fields\Address\AddressFormatterFactory,
};
use PhpOffice\PhpSpreadsheet\Cell\DataType;
@@ -27,9 +27,9 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace tests\integration\Espo\Core\FieldUtils\Address;
namespace tests\integration\Espo\Core\Fields\Address;
use Espo\Core\FieldUtils\Address\{
use Espo\Core\Fields\Address\{
AddressFormatterFactory,
AddressValue,
};
@@ -27,10 +27,10 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace tests\unit\Espo\Core\FieldUtils\Address;
namespace tests\unit\Espo\Core\Fields\Address;
use Espo\Core\{
FieldUtils\Address\Address,
Fields\Address\Address,
};
use Espo\Classes\{
@@ -27,11 +27,11 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace tests\unit\Espo\Core\FieldUtils\Address;
namespace tests\unit\Espo\Core\Fields\Address;
use Espo\Core\{
FieldUtils\Address\Address,
FieldUtils\Address\AddressFactory,
Fields\Address\Address,
Fields\Address\AddressFactory,
};
use Espo\ORM\Entity;
@@ -27,10 +27,10 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace tests\unit\Espo\Core\FieldUtils\Currency;
namespace tests\unit\Espo\Core\Fields\Currency;
use Espo\Core\{
FieldUtils\Currency\CurrencyConfigDataProvider,
Fields\Currency\CurrencyConfigDataProvider,
Utils\Config,
};
@@ -27,13 +27,13 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace tests\unit\Espo\Core\FieldUtils\Currency;
namespace tests\unit\Espo\Core\Fields\Currency;
use Espo\Core\{
FieldUtils\Currency\Currency,
FieldUtils\Currency\CurrencyConverter,
FieldUtils\Currency\CurrencyConfigDataProvider,
FieldUtils\Currency\CurrencyRates,
Fields\Currency\Currency,
Fields\Currency\CurrencyConverter,
Fields\Currency\CurrencyConfigDataProvider,
Fields\Currency\CurrencyRates,
};
class CurrencyConverterTest extends \PHPUnit\Framework\TestCase
@@ -27,11 +27,11 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace tests\unit\Espo\Core\FieldUtils\Currency;
namespace tests\unit\Espo\Core\Fields\Currency;
use Espo\Core\{
FieldUtils\Currency\Currency,
FieldUtils\Currency\CurrencyFactory,
Fields\Currency\Currency,
Fields\Currency\CurrencyFactory,
};
use Espo\{