From 14ab746762acd1856ddd386023128f23935ef119 Mon Sep 17 00:00:00 2001 From: Norbert Orzechowicz Date: Sat, 20 Apr 2019 17:57:31 +0200 Subject: [PATCH] CS Fixes --- .php_cs | 9 +++++++ .travis.yml | 4 +-- README.md | 27 +++++++++++++++++++ .../PHPHumanizer/Collection/Formatter.php | 7 +++++ src/Coduo/PHPHumanizer/Collection/Oxford.php | 7 +++++ .../PHPHumanizer/CollectionHumanizer.php | 7 +++++ .../PHPHumanizer/DateTime/Difference.php | 7 +++++ .../DateTime/Difference/CompoundResult.php | 7 +++++ src/Coduo/PHPHumanizer/DateTime/Formatter.php | 7 +++++ .../DateTime/PreciseDifference.php | 7 +++++ .../DateTime/PreciseFormatter.php | 7 +++++ src/Coduo/PHPHumanizer/DateTime/Unit.php | 7 +++++ src/Coduo/PHPHumanizer/DateTime/Unit/Day.php | 7 +++++ src/Coduo/PHPHumanizer/DateTime/Unit/Hour.php | 7 +++++ .../PHPHumanizer/DateTime/Unit/JustNow.php | 7 +++++ .../PHPHumanizer/DateTime/Unit/Minute.php | 7 +++++ .../PHPHumanizer/DateTime/Unit/Month.php | 7 +++++ .../PHPHumanizer/DateTime/Unit/Second.php | 7 +++++ src/Coduo/PHPHumanizer/DateTime/Unit/Week.php | 7 +++++ src/Coduo/PHPHumanizer/DateTime/Unit/Year.php | 7 +++++ src/Coduo/PHPHumanizer/DateTimeHumanizer.php | 7 +++++ src/Coduo/PHPHumanizer/Number/Ordinal.php | 7 +++++ .../PHPHumanizer/Number/Ordinal/Builder.php | 7 +++++ .../Number/Ordinal/StrategyInterface.php | 7 +++++ .../PHPHumanizer/Number/RomanNumeral.php | 7 +++++ src/Coduo/PHPHumanizer/NumberHumanizer.php | 7 +++++ .../Resources/Ordinal/DeStrategy.php | 7 +++++ .../Resources/Ordinal/EnStrategy.php | 7 +++++ .../Resources/Ordinal/EsStrategy.php | 7 +++++ .../Resources/Ordinal/FrStrategy.php | 7 +++++ .../Resources/Ordinal/IdStrategy.php | 7 +++++ .../Resources/Ordinal/ItStrategy.php | 7 +++++ .../Resources/Ordinal/NlStrategy.php | 7 +++++ .../Resources/Ordinal/PtStrategy.php | 7 +++++ .../PHPHumanizer/String/BinarySuffix.php | 7 +++++ src/Coduo/PHPHumanizer/String/Breakpoint.php | 7 +++++ .../PHPHumanizer/String/HtmlTruncate.php | 7 +++++ src/Coduo/PHPHumanizer/String/Humanize.php | 7 +++++ .../PHPHumanizer/String/MetricSuffix.php | 7 +++++ .../String/ShortcodeProcessor.php | 7 +++++ .../PHPHumanizer/String/TextTruncate.php | 7 +++++ .../PHPHumanizer/String/TruncateInterface.php | 7 +++++ .../PHPHumanizer/String/WordBreakpoint.php | 7 +++++ src/Coduo/PHPHumanizer/StringHumanizer.php | 7 +++++ src/Coduo/PHPHumanizer/Translator/Builder.php | 7 +++++ .../Tests/CollectionHumanizerTest.php | 7 +++++ .../Tests/DateTimeHumanizerTest.php | 7 +++++ .../Tests/NumberHumanizerTest.php | 7 +++++ .../Tests/StringHumanizerTest.php | 7 +++++ tests/bootstrap.php | 7 +++++ 50 files changed, 366 insertions(+), 3 deletions(-) diff --git a/.php_cs b/.php_cs index 5983888..b4f320e 100644 --- a/.php_cs +++ b/.php_cs @@ -1,9 +1,18 @@ setRules([ '@PSR2' => true, 'declare_strict_types' => true, 'array_syntax' => ['syntax' => 'short'], + 'header_comment' => ['header' => $fileHeaderComment, 'separate' => 'both'], 'blank_line_after_opening_tag' => true, 'single_blank_line_before_namespace' => true, 'no_unused_imports' => true, diff --git a/.travis.yml b/.travis.yml index 162cdfb..dd1b745 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,4 @@ install: - composer update script: - - ./bin/phpspec run --format=pretty - - ./bin/phpunit - - ./bin/php-cs-fixer fix -v --dry-run \ No newline at end of file + - composer run test \ No newline at end of file diff --git a/README.md b/README.md index 634292b..e808e1b 100644 --- a/README.md +++ b/README.md @@ -262,6 +262,33 @@ Currently we support following languages: * [Japanese](src/Coduo/PHPHumanizer/Resources/translations/difference.ja.yml) * [Romanian](src/Coduo/PHPHumanizer/Resources/translations/difference.ro.yml) +# Development + +After downloading library update dependencies: + +``` +composer update +``` + +In order to check lowest possible versions of dependencies add + +``` +composer update --prefer-lowest +```` + +Execute test suite: + +``` +composer run test +``` + +Run CS Fixer + +``` +composer run cs:php:fix +``` + + # Credits This lib was inspired by [Java Humanize Lib](https://github.com/mfornos/humanize) && [Rails Active Support](https://github.com/rails/rails/tree/master/activesupport/lib/active_support) diff --git a/src/Coduo/PHPHumanizer/Collection/Formatter.php b/src/Coduo/PHPHumanizer/Collection/Formatter.php index 60f51c4..ec28b4b 100644 --- a/src/Coduo/PHPHumanizer/Collection/Formatter.php +++ b/src/Coduo/PHPHumanizer/Collection/Formatter.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Collection; use Symfony\Component\Translation\TranslatorInterface; diff --git a/src/Coduo/PHPHumanizer/Collection/Oxford.php b/src/Coduo/PHPHumanizer/Collection/Oxford.php index c102712..a27cf80 100644 --- a/src/Coduo/PHPHumanizer/Collection/Oxford.php +++ b/src/Coduo/PHPHumanizer/Collection/Oxford.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Collection; final class Oxford diff --git a/src/Coduo/PHPHumanizer/CollectionHumanizer.php b/src/Coduo/PHPHumanizer/CollectionHumanizer.php index 2af7295..548cdc4 100644 --- a/src/Coduo/PHPHumanizer/CollectionHumanizer.php +++ b/src/Coduo/PHPHumanizer/CollectionHumanizer.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer; use Coduo\PHPHumanizer\Collection\Formatter; diff --git a/src/Coduo/PHPHumanizer/DateTime/Difference.php b/src/Coduo/PHPHumanizer/DateTime/Difference.php index 8d7d213..60fce9a 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Difference.php +++ b/src/Coduo/PHPHumanizer/DateTime/Difference.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime; use Coduo\PHPHumanizer\DateTime\Unit\Day; diff --git a/src/Coduo/PHPHumanizer/DateTime/Difference/CompoundResult.php b/src/Coduo/PHPHumanizer/DateTime/Difference/CompoundResult.php index 4721c2e..7178ea1 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Difference/CompoundResult.php +++ b/src/Coduo/PHPHumanizer/DateTime/Difference/CompoundResult.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime\Difference; use Coduo\PHPHumanizer\DateTime\Unit; diff --git a/src/Coduo/PHPHumanizer/DateTime/Formatter.php b/src/Coduo/PHPHumanizer/DateTime/Formatter.php index f79d5fc..781fc3d 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Formatter.php +++ b/src/Coduo/PHPHumanizer/DateTime/Formatter.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime; use Symfony\Component\Translation\TranslatorInterface; diff --git a/src/Coduo/PHPHumanizer/DateTime/PreciseDifference.php b/src/Coduo/PHPHumanizer/DateTime/PreciseDifference.php index 221f1a6..75c1cfb 100644 --- a/src/Coduo/PHPHumanizer/DateTime/PreciseDifference.php +++ b/src/Coduo/PHPHumanizer/DateTime/PreciseDifference.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime; use Coduo\PHPHumanizer\DateTime\Unit\Day; diff --git a/src/Coduo/PHPHumanizer/DateTime/PreciseFormatter.php b/src/Coduo/PHPHumanizer/DateTime/PreciseFormatter.php index 52a2e34..66800a1 100644 --- a/src/Coduo/PHPHumanizer/DateTime/PreciseFormatter.php +++ b/src/Coduo/PHPHumanizer/DateTime/PreciseFormatter.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime; use Symfony\Component\Translation\TranslatorInterface; diff --git a/src/Coduo/PHPHumanizer/DateTime/Unit.php b/src/Coduo/PHPHumanizer/DateTime/Unit.php index bac4b47..2a3525f 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Unit.php +++ b/src/Coduo/PHPHumanizer/DateTime/Unit.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime; interface Unit diff --git a/src/Coduo/PHPHumanizer/DateTime/Unit/Day.php b/src/Coduo/PHPHumanizer/DateTime/Unit/Day.php index 0ab87a4..4e4f72d 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Unit/Day.php +++ b/src/Coduo/PHPHumanizer/DateTime/Unit/Day.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime\Unit; use Coduo\PHPHumanizer\DateTime\Unit; diff --git a/src/Coduo/PHPHumanizer/DateTime/Unit/Hour.php b/src/Coduo/PHPHumanizer/DateTime/Unit/Hour.php index 7f75d91..8a21186 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Unit/Hour.php +++ b/src/Coduo/PHPHumanizer/DateTime/Unit/Hour.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime\Unit; use Coduo\PHPHumanizer\DateTime\Unit; diff --git a/src/Coduo/PHPHumanizer/DateTime/Unit/JustNow.php b/src/Coduo/PHPHumanizer/DateTime/Unit/JustNow.php index 0b682d7..ea1120a 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Unit/JustNow.php +++ b/src/Coduo/PHPHumanizer/DateTime/Unit/JustNow.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime\Unit; use Coduo\PHPHumanizer\DateTime\Unit; diff --git a/src/Coduo/PHPHumanizer/DateTime/Unit/Minute.php b/src/Coduo/PHPHumanizer/DateTime/Unit/Minute.php index a8d39b8..1c2c3c2 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Unit/Minute.php +++ b/src/Coduo/PHPHumanizer/DateTime/Unit/Minute.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime\Unit; use Coduo\PHPHumanizer\DateTime\Unit; diff --git a/src/Coduo/PHPHumanizer/DateTime/Unit/Month.php b/src/Coduo/PHPHumanizer/DateTime/Unit/Month.php index f860e52..ae26e8f 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Unit/Month.php +++ b/src/Coduo/PHPHumanizer/DateTime/Unit/Month.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime\Unit; use Coduo\PHPHumanizer\DateTime\Unit; diff --git a/src/Coduo/PHPHumanizer/DateTime/Unit/Second.php b/src/Coduo/PHPHumanizer/DateTime/Unit/Second.php index 94a9c0c..12f3e54 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Unit/Second.php +++ b/src/Coduo/PHPHumanizer/DateTime/Unit/Second.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime\Unit; use Coduo\PHPHumanizer\DateTime\Unit; diff --git a/src/Coduo/PHPHumanizer/DateTime/Unit/Week.php b/src/Coduo/PHPHumanizer/DateTime/Unit/Week.php index 9cc987c..cd0ff1a 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Unit/Week.php +++ b/src/Coduo/PHPHumanizer/DateTime/Unit/Week.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime\Unit; use Coduo\PHPHumanizer\DateTime\Unit; diff --git a/src/Coduo/PHPHumanizer/DateTime/Unit/Year.php b/src/Coduo/PHPHumanizer/DateTime/Unit/Year.php index 49ae9bc..4dda1c9 100644 --- a/src/Coduo/PHPHumanizer/DateTime/Unit/Year.php +++ b/src/Coduo/PHPHumanizer/DateTime/Unit/Year.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\DateTime\Unit; use Coduo\PHPHumanizer\DateTime\Unit; diff --git a/src/Coduo/PHPHumanizer/DateTimeHumanizer.php b/src/Coduo/PHPHumanizer/DateTimeHumanizer.php index bfdfbc3..44f7472 100644 --- a/src/Coduo/PHPHumanizer/DateTimeHumanizer.php +++ b/src/Coduo/PHPHumanizer/DateTimeHumanizer.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer; use Coduo\PHPHumanizer\DateTime\Difference; diff --git a/src/Coduo/PHPHumanizer/Number/Ordinal.php b/src/Coduo/PHPHumanizer/Number/Ordinal.php index 0c34ade..73e92a5 100644 --- a/src/Coduo/PHPHumanizer/Number/Ordinal.php +++ b/src/Coduo/PHPHumanizer/Number/Ordinal.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Number; use Coduo\PHPHumanizer\Number\Ordinal\Builder; diff --git a/src/Coduo/PHPHumanizer/Number/Ordinal/Builder.php b/src/Coduo/PHPHumanizer/Number/Ordinal/Builder.php index 86a5b82..582055b 100644 --- a/src/Coduo/PHPHumanizer/Number/Ordinal/Builder.php +++ b/src/Coduo/PHPHumanizer/Number/Ordinal/Builder.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Number\Ordinal; /** diff --git a/src/Coduo/PHPHumanizer/Number/Ordinal/StrategyInterface.php b/src/Coduo/PHPHumanizer/Number/Ordinal/StrategyInterface.php index f043910..aa23162 100644 --- a/src/Coduo/PHPHumanizer/Number/Ordinal/StrategyInterface.php +++ b/src/Coduo/PHPHumanizer/Number/Ordinal/StrategyInterface.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Number\Ordinal; interface StrategyInterface diff --git a/src/Coduo/PHPHumanizer/Number/RomanNumeral.php b/src/Coduo/PHPHumanizer/Number/RomanNumeral.php index 0760fa2..745c60c 100644 --- a/src/Coduo/PHPHumanizer/Number/RomanNumeral.php +++ b/src/Coduo/PHPHumanizer/Number/RomanNumeral.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Number; final class RomanNumeral diff --git a/src/Coduo/PHPHumanizer/NumberHumanizer.php b/src/Coduo/PHPHumanizer/NumberHumanizer.php index 25835ea..7d26299 100644 --- a/src/Coduo/PHPHumanizer/NumberHumanizer.php +++ b/src/Coduo/PHPHumanizer/NumberHumanizer.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer; use Coduo\PHPHumanizer\Number\Ordinal; diff --git a/src/Coduo/PHPHumanizer/Resources/Ordinal/DeStrategy.php b/src/Coduo/PHPHumanizer/Resources/Ordinal/DeStrategy.php index 852d836..6a96127 100644 --- a/src/Coduo/PHPHumanizer/Resources/Ordinal/DeStrategy.php +++ b/src/Coduo/PHPHumanizer/Resources/Ordinal/DeStrategy.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Resources\Ordinal; use Coduo\PHPHumanizer\Number\Ordinal\StrategyInterface; diff --git a/src/Coduo/PHPHumanizer/Resources/Ordinal/EnStrategy.php b/src/Coduo/PHPHumanizer/Resources/Ordinal/EnStrategy.php index 5ede85a..35e6f5a 100644 --- a/src/Coduo/PHPHumanizer/Resources/Ordinal/EnStrategy.php +++ b/src/Coduo/PHPHumanizer/Resources/Ordinal/EnStrategy.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Resources\Ordinal; use Coduo\PHPHumanizer\Number\Ordinal\StrategyInterface; diff --git a/src/Coduo/PHPHumanizer/Resources/Ordinal/EsStrategy.php b/src/Coduo/PHPHumanizer/Resources/Ordinal/EsStrategy.php index 2031c63..30ba76e 100644 --- a/src/Coduo/PHPHumanizer/Resources/Ordinal/EsStrategy.php +++ b/src/Coduo/PHPHumanizer/Resources/Ordinal/EsStrategy.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Resources\Ordinal; use Coduo\PHPHumanizer\Number\Ordinal\StrategyInterface; diff --git a/src/Coduo/PHPHumanizer/Resources/Ordinal/FrStrategy.php b/src/Coduo/PHPHumanizer/Resources/Ordinal/FrStrategy.php index 6125883..788789b 100644 --- a/src/Coduo/PHPHumanizer/Resources/Ordinal/FrStrategy.php +++ b/src/Coduo/PHPHumanizer/Resources/Ordinal/FrStrategy.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Resources\Ordinal; use Coduo\PHPHumanizer\Number\Ordinal\StrategyInterface; diff --git a/src/Coduo/PHPHumanizer/Resources/Ordinal/IdStrategy.php b/src/Coduo/PHPHumanizer/Resources/Ordinal/IdStrategy.php index 7f86ebf..e678f99 100644 --- a/src/Coduo/PHPHumanizer/Resources/Ordinal/IdStrategy.php +++ b/src/Coduo/PHPHumanizer/Resources/Ordinal/IdStrategy.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Resources\Ordinal; use Coduo\PHPHumanizer\Number\Ordinal\StrategyInterface; diff --git a/src/Coduo/PHPHumanizer/Resources/Ordinal/ItStrategy.php b/src/Coduo/PHPHumanizer/Resources/Ordinal/ItStrategy.php index 48bcfba..318bbf8 100644 --- a/src/Coduo/PHPHumanizer/Resources/Ordinal/ItStrategy.php +++ b/src/Coduo/PHPHumanizer/Resources/Ordinal/ItStrategy.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Resources\Ordinal; use Coduo\PHPHumanizer\Number\Ordinal\StrategyInterface; diff --git a/src/Coduo/PHPHumanizer/Resources/Ordinal/NlStrategy.php b/src/Coduo/PHPHumanizer/Resources/Ordinal/NlStrategy.php index 37f8122..7350eb5 100644 --- a/src/Coduo/PHPHumanizer/Resources/Ordinal/NlStrategy.php +++ b/src/Coduo/PHPHumanizer/Resources/Ordinal/NlStrategy.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Resources\Ordinal; use Coduo\PHPHumanizer\Number\Ordinal\StrategyInterface; diff --git a/src/Coduo/PHPHumanizer/Resources/Ordinal/PtStrategy.php b/src/Coduo/PHPHumanizer/Resources/Ordinal/PtStrategy.php index 4a47a59..2f625a8 100644 --- a/src/Coduo/PHPHumanizer/Resources/Ordinal/PtStrategy.php +++ b/src/Coduo/PHPHumanizer/Resources/Ordinal/PtStrategy.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Resources\Ordinal; use Coduo\PHPHumanizer\Number\Ordinal\StrategyInterface; diff --git a/src/Coduo/PHPHumanizer/String/BinarySuffix.php b/src/Coduo/PHPHumanizer/String/BinarySuffix.php index cc42a60..b71e798 100644 --- a/src/Coduo/PHPHumanizer/String/BinarySuffix.php +++ b/src/Coduo/PHPHumanizer/String/BinarySuffix.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\String; final class BinarySuffix diff --git a/src/Coduo/PHPHumanizer/String/Breakpoint.php b/src/Coduo/PHPHumanizer/String/Breakpoint.php index 911381b..e823511 100644 --- a/src/Coduo/PHPHumanizer/String/Breakpoint.php +++ b/src/Coduo/PHPHumanizer/String/Breakpoint.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\String; interface Breakpoint diff --git a/src/Coduo/PHPHumanizer/String/HtmlTruncate.php b/src/Coduo/PHPHumanizer/String/HtmlTruncate.php index ccdfce3..f85097a 100644 --- a/src/Coduo/PHPHumanizer/String/HtmlTruncate.php +++ b/src/Coduo/PHPHumanizer/String/HtmlTruncate.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\String; final class HtmlTruncate implements TruncateInterface diff --git a/src/Coduo/PHPHumanizer/String/Humanize.php b/src/Coduo/PHPHumanizer/String/Humanize.php index 92c27cd..a4ef053 100644 --- a/src/Coduo/PHPHumanizer/String/Humanize.php +++ b/src/Coduo/PHPHumanizer/String/Humanize.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\String; final class Humanize diff --git a/src/Coduo/PHPHumanizer/String/MetricSuffix.php b/src/Coduo/PHPHumanizer/String/MetricSuffix.php index 46d4aec..3a76eb3 100644 --- a/src/Coduo/PHPHumanizer/String/MetricSuffix.php +++ b/src/Coduo/PHPHumanizer/String/MetricSuffix.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\String; final class MetricSuffix diff --git a/src/Coduo/PHPHumanizer/String/ShortcodeProcessor.php b/src/Coduo/PHPHumanizer/String/ShortcodeProcessor.php index 22cbd69..405a056 100644 --- a/src/Coduo/PHPHumanizer/String/ShortcodeProcessor.php +++ b/src/Coduo/PHPHumanizer/String/ShortcodeProcessor.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\String; use Thunder\Shortcode\HandlerContainer\HandlerContainer; diff --git a/src/Coduo/PHPHumanizer/String/TextTruncate.php b/src/Coduo/PHPHumanizer/String/TextTruncate.php index ebfddee..e48c044 100644 --- a/src/Coduo/PHPHumanizer/String/TextTruncate.php +++ b/src/Coduo/PHPHumanizer/String/TextTruncate.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\String; final class TextTruncate implements TruncateInterface diff --git a/src/Coduo/PHPHumanizer/String/TruncateInterface.php b/src/Coduo/PHPHumanizer/String/TruncateInterface.php index 849b06b..1749047 100644 --- a/src/Coduo/PHPHumanizer/String/TruncateInterface.php +++ b/src/Coduo/PHPHumanizer/String/TruncateInterface.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\String; interface TruncateInterface diff --git a/src/Coduo/PHPHumanizer/String/WordBreakpoint.php b/src/Coduo/PHPHumanizer/String/WordBreakpoint.php index 6489156..1a73722 100644 --- a/src/Coduo/PHPHumanizer/String/WordBreakpoint.php +++ b/src/Coduo/PHPHumanizer/String/WordBreakpoint.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\String; final class WordBreakpoint implements Breakpoint diff --git a/src/Coduo/PHPHumanizer/StringHumanizer.php b/src/Coduo/PHPHumanizer/StringHumanizer.php index 5b02b2c..8da6660 100644 --- a/src/Coduo/PHPHumanizer/StringHumanizer.php +++ b/src/Coduo/PHPHumanizer/StringHumanizer.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer; use Coduo\PHPHumanizer\String\Humanize; diff --git a/src/Coduo/PHPHumanizer/Translator/Builder.php b/src/Coduo/PHPHumanizer/Translator/Builder.php index 90a499a..b1500ff 100644 --- a/src/Coduo/PHPHumanizer/Translator/Builder.php +++ b/src/Coduo/PHPHumanizer/Translator/Builder.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Translator; use Symfony\Component\Translation\Loader\YamlFileLoader; diff --git a/tests/Coduo/PHPHumanizer/Tests/CollectionHumanizerTest.php b/tests/Coduo/PHPHumanizer/Tests/CollectionHumanizerTest.php index c36703a..29933a9 100644 --- a/tests/Coduo/PHPHumanizer/Tests/CollectionHumanizerTest.php +++ b/tests/Coduo/PHPHumanizer/Tests/CollectionHumanizerTest.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Tests; use Coduo\PHPHumanizer\CollectionHumanizer; diff --git a/tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php b/tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php index 628e3f6..efa9d95 100644 --- a/tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php +++ b/tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Tests; use Coduo\PHPHumanizer\DateTimeHumanizer; diff --git a/tests/Coduo/PHPHumanizer/Tests/NumberHumanizerTest.php b/tests/Coduo/PHPHumanizer/Tests/NumberHumanizerTest.php index 9eed3d9..ae40dbc 100644 --- a/tests/Coduo/PHPHumanizer/Tests/NumberHumanizerTest.php +++ b/tests/Coduo/PHPHumanizer/Tests/NumberHumanizerTest.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Tests; use Coduo\PHPHumanizer\NumberHumanizer; diff --git a/tests/Coduo/PHPHumanizer/Tests/StringHumanizerTest.php b/tests/Coduo/PHPHumanizer/Tests/StringHumanizerTest.php index dcde823..c3f1f51 100644 --- a/tests/Coduo/PHPHumanizer/Tests/StringHumanizerTest.php +++ b/tests/Coduo/PHPHumanizer/Tests/StringHumanizerTest.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Coduo\PHPHumanizer\Tests; use Coduo\PHPHumanizer\StringHumanizer; diff --git a/tests/bootstrap.php b/tests/bootstrap.php index e800b9d..008bbfe 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -2,4 +2,11 @@ declare(strict_types=1); +/* + * This file is part of the PHP Humanizer Library. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + $loader = require_once __DIR__ . '/../vendor/autoload.php';