Skip to content

Commit

Permalink
Rename lib as src
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Aug 9, 2024
1 parent 7607234 commit 4cc368d
Show file tree
Hide file tree
Showing 95 changed files with 49 additions and 49 deletions.
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,27 @@ GENERATE=./generator/generate

.PHONY=generate
generate: \
lib/Currency.php \
lib/LocaleId.php \
lib/Locale/HasContextTransforms.php \
lib/TerritoryCode.php \
lib/Units/SequenceCompanion.php \
lib/Units/UnitsCompanion.php

lib/Currency.php: generator/src/Command/GenerateCurrency.php
src/Currency.php \
src/LocaleId.php \
src/Locale/HasContextTransforms.php \
src/TerritoryCode.php \
src/Units/SequenceCompanion.php \
src/Units/UnitsCompanion.php

src/Currency.php: generator/src/Command/GenerateCurrency.php
$(GENERATE) $@

lib/LocaleId.php: generator/src/Command/GenerateLocaleId.php
src/LocaleId.php: generator/src/Command/GenerateLocaleId.php
$(GENERATE) $@

lib/Locale/HasContextTransforms.php: generator/src/Command/GenerateHasContextTransforms.php
src/Locale/HasContextTransforms.php: generator/src/Command/GenerateHasContextTransforms.php
$(GENERATE) $@

lib/Units/SequenceCompanion.php: generator/src/Command/GenerateSequenceCompanion.php
src/Units/SequenceCompanion.php: generator/src/Command/GenerateSequenceCompanion.php
$(GENERATE) $@

lib/TerritoryCode.php: generator/src/Command/GenerateTerritoryCode.php
src/TerritoryCode.php: generator/src/Command/GenerateTerritoryCode.php
$(GENERATE) $@

lib/Units/UnitsCompanion.php: generator/src/Command/GenerateUnitsCompanion.php
src/Units/UnitsCompanion.php: generator/src/Command/GenerateUnitsCompanion.php
$(GENERATE) $@
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ See [CONTRIBUTING](CONTRIBUTING.md) for details.


[ICanBoogie]: https://icanboogie.org/
[FileCache]: lib/Cache/FileCache.php
[Provider]: lib/Provider.php
[WebProvider]: lib/Provider/WebProvider.php
[FailingProvider]: lib/Provider/FailingProvider.php
[Repository]: lib/Repository.php
[FileCache]: src/Cache/FileCache.php
[Provider]: src/Provider.php
[WebProvider]: src/Provider/WebProvider.php
[FailingProvider]: src/Provider/FailingProvider.php
[Repository]: src/Repository.php

[2]: https://github.com/unicode-cldr
[the cldr command]: https://github.com/ICanBoogie/CLDR-CLI
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"autoload": {
"psr-4": {
"ICanBoogie\\CLDR\\": "lib"
"ICanBoogie\\CLDR\\": "src"
}
},
"autoload-dev": {
Expand Down
8 changes: 4 additions & 4 deletions docs/Core.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ echo $repository->locale_fr('fr')->context_transform(
// Juin
```

[Currency]: ../lib/Currency.php
[Locale]: ../lib/Locale.php
[Localizable]: ../lib/Localizable.php
[Territory]: ../lib/Territory.php
[Currency]: ../src/Currency.php
[Locale]: ../src/Locale.php
[Localizable]: ../src/Localizable.php
[Territory]: ../src/Territory.php
8 changes: 4 additions & 4 deletions docs/Dates.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ echo $ldt->as_short; // 04/11/2013 20:21



[Calendar]: ../lib/Calendar.php
[DateTimeFormatter]: ../lib/DateTimeFormatter.php
[LocalizedDateTime]: ../lib/LocalizedDateTime.php
[TimeFormatter]: ../lib/TimeFormatter.php
[Calendar]: ../src/Calendar.php
[DateTimeFormatter]: ../src/DateTimeFormatter.php
[LocalizedDateTime]: ../src/LocalizedDateTime.php
[TimeFormatter]: ../src/TimeFormatter.php
6 changes: 3 additions & 3 deletions docs/Numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,6 @@ $cldr->plurals->rule_for(2, 'ar'); // two



[Locale]: ../lib/Locale.php
[LocalizedNumberFormatter]: ../lib/LocalizedNumberFormatter.php
[NumberFormatter]: ../lib/NumberFormatter.php
[Locale]: ../src/Locale.php
[LocalizedNumberFormatter]: ../src/LocalizedNumberFormatter.php
[NumberFormatter]: ../src/NumberFormatter.php
2 changes: 1 addition & 1 deletion docs/Supplemental.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ echo $territory->localized('ja')->name; // フランス



[Territory]: ../lib/Territory.php
[Territory]: ../src/Territory.php
4 changes: 2 additions & 2 deletions generator/src/Command/GenerateCurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

use function ICanBoogie\CLDR\Generator\indent;

#[AsCommand('lib/Currency.php')]
#[AsCommand('src/Currency.php')]
final class GenerateCurrency extends Command
{
private const GENERATED_FILE = 'lib/Currency.php';
private const GENERATED_FILE = 'src/Currency.php';

public function __construct(
private readonly Repository $repository
Expand Down
4 changes: 2 additions & 2 deletions generator/src/Command/GenerateHasContextTransforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

use function ICanBoogie\CLDR\Generator\indent;

#[AsCommand('lib/Locale/HasContextTransforms.php')]
#[AsCommand('src/Locale/HasContextTransforms.php')]
final class GenerateHasContextTransforms extends Command
{
private const GENERATED_FILE = 'lib/Locale/HasContextTransforms.php';
private const GENERATED_FILE = 'src/Locale/HasContextTransforms.php';

public function __construct(
private readonly Repository $repository
Expand Down
4 changes: 2 additions & 2 deletions generator/src/Command/GenerateLocaleId.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

use function ICanBoogie\CLDR\Generator\indent;

#[AsCommand('lib/LocaleId.php')]
#[AsCommand('src/LocaleId.php')]
final class GenerateLocaleId extends Command
{
private const GENERATED_FILE = 'lib/LocaleId.php';
private const GENERATED_FILE = 'src/LocaleId.php';

public function __construct(
private readonly Repository $repository
Expand Down
4 changes: 2 additions & 2 deletions generator/src/Command/GenerateSequenceCompanion.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand('lib/Units/SequenceCompanion.php')]
#[AsCommand('src/Units/SequenceCompanion.php')]
final class GenerateSequenceCompanion extends Command
{
private const GENERATED_FILE = 'lib/Units/SequenceCompanion.php';
private const GENERATED_FILE = 'src/Units/SequenceCompanion.php';

public function __construct(
private readonly Repository $repository
Expand Down
4 changes: 2 additions & 2 deletions generator/src/Command/GenerateTerritoryCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
use Symfony\Component\VarExporter\VarExporter;
use function ICanBoogie\CLDR\Generator\indent;

#[AsCommand('lib/TerritoryCode.php')]
#[AsCommand('src/TerritoryCode.php')]
final class GenerateTerritoryCode extends Command
{
private const GENERATED_FILE = 'lib/TerritoryCode.php';
private const GENERATED_FILE = 'src/TerritoryCode.php';

public function __construct(
private readonly Repository $repository
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 @@ -8,10 +8,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand('lib/Units/UnitsCompanion.php')]
#[AsCommand('src/Units/UnitsCompanion.php')]
final class GenerateUnitsCompanion extends Command
{
private const GENERATED_FILE = 'lib/Units/UnitsCompanion.php';
private const GENERATED_FILE = 'src/Units/UnitsCompanion.php';

public function __construct(
private readonly Repository $repository
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<file>lib</file>
<file>src</file>
<file>tests</file>

<arg name="colors"/>
Expand Down
8 changes: 4 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
parameters:
level: 8
paths:
- lib
- src
- generator
- tests
scanFiles:
- generator/generate
excludePaths:
- lib/LocaleId.php
- lib/Units/SequenceCompanion.php
- lib/Units/UnitsCompanion.php
- src/LocaleId.php
- src/Units/SequenceCompanion.php
- src/Units/UnitsCompanion.php
ignoreErrors:
- '#get_.* is unused.#'
- '#Method Test\\.*iterable type array#'
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</testsuites>
<source>
<include>
<directory>./lib</directory>
<directory>./src</directory>
</include>
</source>
</phpunit>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4cc368d

Please sign in to comment.