From 87e1d7206ffe8dbf0df24c2f7318fab14a527833 Mon Sep 17 00:00:00 2001 From: Olivier Laviale Date: Mon, 12 Aug 2024 00:23:04 +0200 Subject: [PATCH] Move Units back into Supplemental --- Makefile | 8 ++++---- generator/src/Command/GenerateSequenceCompanion.php | 4 ++-- generator/src/Command/GenerateUnitsCompanion.php | 4 ++-- src/Core/Locale.php | 2 +- src/{ => Supplemental}/Units/NumberPerUnit.php | 2 +- src/{ => Supplemental}/Units/NumberWithUnit.php | 2 +- src/{ => Supplemental}/Units/Sequence.php | 2 +- src/{ => Supplemental}/Units/SequenceCompanion.php | 2 +- src/{ => Supplemental}/Units/Unit.php | 2 +- src/{ => Supplemental}/Units/UnitLength.php | 2 +- src/{ => Supplemental}/Units/Units.php | 2 +- src/{ => Supplemental}/Units/UnitsCompanion.php | 2 +- tests/Core/LocaleTest.php | 2 +- tests/General/UnitsTest.php | 4 ++-- tests/{ => Supplemental}/Units/NumberPerUnitTest.php | 8 ++++---- tests/{ => Supplemental}/Units/NumberWithUnitTest.php | 8 ++++---- tests/{ => Supplemental}/Units/SequenceTest.php | 8 ++++---- tests/{ => Supplemental}/Units/UnitTest.php | 8 ++++---- 18 files changed, 36 insertions(+), 36 deletions(-) rename src/{ => Supplemental}/Units/NumberPerUnit.php (96%) rename src/{ => Supplemental}/Units/NumberWithUnit.php (96%) rename src/{ => Supplemental}/Units/Sequence.php (96%) rename src/{ => Supplemental}/Units/SequenceCompanion.php (99%) rename src/{ => Supplemental}/Units/Unit.php (96%) rename src/{ => Supplemental}/Units/UnitLength.php (71%) rename src/{ => Supplemental}/Units/Units.php (99%) rename src/{ => Supplemental}/Units/UnitsCompanion.php (99%) rename tests/{ => Supplemental}/Units/NumberPerUnitTest.php (91%) rename tests/{ => Supplemental}/Units/NumberWithUnitTest.php (94%) rename tests/{ => Supplemental}/Units/SequenceTest.php (88%) rename tests/{ => Supplemental}/Units/UnitTest.php (88%) diff --git a/Makefile b/Makefile index 3d43bb8..0f13b18 100644 --- a/Makefile +++ b/Makefile @@ -62,8 +62,8 @@ generate: \ src/General/Transforms/HasContextTransforms.php \ src/Numbers/CurrencyData.php \ src/Supplemental/Territory/TerritoryData.php \ - src/Units/SequenceCompanion.php \ - src/Units/UnitsCompanion.php + src/Supplemental/Units/SequenceCompanion.php \ + src/Supplemental/Units/UnitsCompanion.php src/Core/LocaleData.php: generator/src/Command/GenerateLocaleData.php $(GENERATE) $@ @@ -77,8 +77,8 @@ src/Numbers/CurrencyData.php: generator/src/Command/GenerateCurrencyData.php src/Supplemental/Territory/TerritoryData.php: generator/src/Command/GenerateTerritoryData.php $(GENERATE) $@ -src/Units/SequenceCompanion.php: generator/src/Command/GenerateSequenceCompanion.php +src/Supplemental/Units/SequenceCompanion.php: generator/src/Command/GenerateSequenceCompanion.php $(GENERATE) $@ -src/Units/UnitsCompanion.php: generator/src/Command/GenerateUnitsCompanion.php +src/Supplemental/Units/UnitsCompanion.php: generator/src/Command/GenerateUnitsCompanion.php $(GENERATE) $@ diff --git a/generator/src/Command/GenerateSequenceCompanion.php b/generator/src/Command/GenerateSequenceCompanion.php index 12a687b..2c2b347 100644 --- a/generator/src/Command/GenerateSequenceCompanion.php +++ b/generator/src/Command/GenerateSequenceCompanion.php @@ -11,7 +11,7 @@ #[AsCommand(self::GENERATED_FILE)] final class GenerateSequenceCompanion extends Command { - private const GENERATED_FILE = 'src/Units/SequenceCompanion.php'; + private const GENERATED_FILE = 'src/Supplemental/Units/SequenceCompanion.php'; public function __construct( private readonly Repository $repository @@ -69,7 +69,7 @@ private function render( * {@see \\$class} */ - namespace ICanBoogie\CLDR\Units; + namespace ICanBoogie\CLDR\Supplemental\Units; /** * @internal diff --git a/generator/src/Command/GenerateUnitsCompanion.php b/generator/src/Command/GenerateUnitsCompanion.php index 4780f82..dbd696e 100644 --- a/generator/src/Command/GenerateUnitsCompanion.php +++ b/generator/src/Command/GenerateUnitsCompanion.php @@ -11,7 +11,7 @@ #[AsCommand(self::GENERATED_FILE)] final class GenerateUnitsCompanion extends Command { - private const GENERATED_FILE = 'src/Units/UnitsCompanion.php'; + private const GENERATED_FILE = 'src/Supplemental/Units/UnitsCompanion.php'; public function __construct( private readonly Repository $repository @@ -72,7 +72,7 @@ private function render( * {@see \\$class} */ - namespace ICanBoogie\CLDR\Units; + namespace ICanBoogie\CLDR\Supplemental\Units; /** * @internal diff --git a/src/Core/Locale.php b/src/Core/Locale.php index ba80fe8..7469903 100644 --- a/src/Core/Locale.php +++ b/src/Core/Locale.php @@ -16,7 +16,7 @@ use ICanBoogie\CLDR\Numbers\NumberFormatterLocalized; use ICanBoogie\CLDR\Numbers\Numbers; use ICanBoogie\CLDR\Repository; -use ICanBoogie\CLDR\Units\Units; +use ICanBoogie\CLDR\Supplemental\Units\Units; use ICanBoogie\CLDR\Warmable; use WeakMap; diff --git a/src/Units/NumberPerUnit.php b/src/Supplemental/Units/NumberPerUnit.php similarity index 96% rename from src/Units/NumberPerUnit.php rename to src/Supplemental/Units/NumberPerUnit.php index b9286a2..22a3fa7 100644 --- a/src/Units/NumberPerUnit.php +++ b/src/Supplemental/Units/NumberPerUnit.php @@ -1,6 +1,6 @@