Skip to content

Commit

Permalink
Move Units back into Supplemental
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Aug 11, 2024
1 parent 10c7da9 commit 87e1d72
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 36 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) $@
Expand All @@ -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) $@
4 changes: 2 additions & 2 deletions generator/src/Command/GenerateSequenceCompanion.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -69,7 +69,7 @@ private function render(
* {@see \\$class}
*/
namespace ICanBoogie\CLDR\Units;
namespace ICanBoogie\CLDR\Supplemental\Units;
/**
* @internal
Expand Down
4 changes: 2 additions & 2 deletions generator/src/Command/GenerateUnitsCompanion.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -72,7 +72,7 @@ private function render(
* {@see \\$class}
*/
namespace ICanBoogie\CLDR\Units;
namespace ICanBoogie\CLDR\Supplemental\Units;
/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ICanBoogie\CLDR\Units;
namespace ICanBoogie\CLDR\Supplemental\Units;

use ICanBoogie\Accessor\AccessorTrait;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ICanBoogie\CLDR\Units;
namespace ICanBoogie\CLDR\Supplemental\Units;

use ICanBoogie\Accessor\AccessorTrait;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ICanBoogie\CLDR\Units;
namespace ICanBoogie\CLDR\Supplemental\Units;

use ICanBoogie\Accessor\AccessorTrait;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* {@see \ICanBoogie\CLDR\Generator\Command\GenerateSequenceCompanion}
*/

namespace ICanBoogie\CLDR\Units;
namespace ICanBoogie\CLDR\Supplemental\Units;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion src/Units/Unit.php → src/Supplemental/Units/Unit.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ICanBoogie\CLDR\Units;
namespace ICanBoogie\CLDR\Supplemental\Units;

use ICanBoogie\Accessor\AccessorTrait;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ICanBoogie\CLDR\Units;
namespace ICanBoogie\CLDR\Supplemental\Units;

enum UnitLength: string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Units/Units.php → src/Supplemental/Units/Units.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ICanBoogie\CLDR\Units;
namespace ICanBoogie\CLDR\Supplemental\Units;

use ICanBoogie\CLDR\Core\Locale;
use ICanBoogie\CLDR\General\Lists\ListType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* {@see \ICanBoogie\CLDR\Generator\Command\GenerateUnitsCompanion}
*/

namespace ICanBoogie\CLDR\Units;
namespace ICanBoogie\CLDR\Supplemental\Units;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion tests/Core/LocaleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Test\ICanBoogie\CLDR\StringHelpers;
Expand Down
4 changes: 2 additions & 2 deletions tests/General/UnitsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Test\ICanBoogie\CLDR\General;

use ICanBoogie\CLDR\Spaces;
use ICanBoogie\CLDR\Units\UnitLength;
use ICanBoogie\CLDR\Units\Units;
use ICanBoogie\CLDR\Supplemental\Units\UnitLength;
use ICanBoogie\CLDR\Supplemental\Units\Units;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Test\ICanBoogie\CLDR\StringHelpers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Test\ICanBoogie\CLDR\Units;
namespace Test\ICanBoogie\CLDR\Supplemental\Units;

use ICanBoogie\CLDR\Units\NumberPerUnit;
use ICanBoogie\CLDR\Units\UnitLength;
use ICanBoogie\CLDR\Units\Units;
use ICanBoogie\CLDR\Supplemental\Units\NumberPerUnit;
use ICanBoogie\CLDR\Supplemental\Units\UnitLength;
use ICanBoogie\CLDR\Supplemental\Units\Units;
use PHPUnit\Framework\TestCase;
use Test\ICanBoogie\CLDR\StringHelpers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Test\ICanBoogie\CLDR\Units;
namespace Test\ICanBoogie\CLDR\Supplemental\Units;

use ICanBoogie\CLDR\Units\NumberWithUnit;
use ICanBoogie\CLDR\Units\UnitLength;
use ICanBoogie\CLDR\Units\Units;
use ICanBoogie\CLDR\Supplemental\Units\NumberWithUnit;
use ICanBoogie\CLDR\Supplemental\Units\UnitLength;
use ICanBoogie\CLDR\Supplemental\Units\Units;
use PHPUnit\Framework\TestCase;
use Test\ICanBoogie\CLDR\StringHelpers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Test\ICanBoogie\CLDR\Units;
namespace Test\ICanBoogie\CLDR\Supplemental\Units;

use ICanBoogie\CLDR\Units\Sequence;
use ICanBoogie\CLDR\Units\UnitLength;
use ICanBoogie\CLDR\Units\Units;
use ICanBoogie\CLDR\Supplemental\Units\Sequence;
use ICanBoogie\CLDR\Supplemental\Units\UnitLength;
use ICanBoogie\CLDR\Supplemental\Units\Units;
use PHPUnit\Framework\TestCase;

final class SequenceTest extends TestCase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Test\ICanBoogie\CLDR\Units;
namespace Test\ICanBoogie\CLDR\Supplemental\Units;

use ICanBoogie\CLDR\Units\Unit;
use ICanBoogie\CLDR\Units\UnitLength;
use ICanBoogie\CLDR\Units\Units;
use ICanBoogie\CLDR\Supplemental\Units\Unit;
use ICanBoogie\CLDR\Supplemental\Units\UnitLength;
use ICanBoogie\CLDR\Supplemental\Units\Units;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;

Expand Down

0 comments on commit 87e1d72

Please sign in to comment.