From 4cf493b4163c339f42cfac6848ef635363c0e410 Mon Sep 17 00:00:00 2001 From: Fabian Martin Date: Wed, 3 Apr 2024 09:18:42 +0200 Subject: [PATCH] [TASK] Run cs-fixer --- Classes/Command/UpdateIpDatabaseCommand.php | 2 +- Classes/Domain/Repository/RegionRepository.php | 2 +- Classes/Exception.php | 2 +- Classes/Exception/IllegalActionException.php | 2 +- Classes/Exception/IllegalFactProviderException.php | 2 +- Classes/Exception/IllegalJudgeException.php | 2 +- Classes/Exception/InvalidActionName.php | 2 +- Classes/FactProvider/AbstractFactProvider.php | 2 +- Classes/FactProvider/BrowserAcceptedLanguage.php | 2 +- Classes/FactProvider/IP2Country.php | 2 +- Classes/FactProvider/StaticFactProvider.php | 2 +- Classes/Hook/OverrideIconOverlayHook.php | 2 +- Classes/Judge/AbstractJudge.php | 2 +- Classes/Judge/Condition.php | 2 +- Classes/Judge/Decision.php | 2 +- Classes/Judge/Fixed.php | 2 +- Classes/Middleware/LanguageRedirectMiddleware.php | 2 +- Classes/Middleware/PageUnavailableMiddleware.php | 2 +- Classes/Processor/Court.php | 2 +- Classes/Processor/ProcessorInterface.php | 2 +- Classes/Store/SessionStore.php | 2 +- Classes/Utility/LocateUtility.php | 2 +- Classes/Verdict/AbstractVerdict.php | 2 +- Classes/Verdict/Redirect.php | 2 +- Tests/Functional/FrontendTest.php | 2 +- Tests/Functional/Store/Session/SessionStoreTest.php | 2 +- Tests/Functional/Utility/LocateUtilityTest.php | 2 +- Tests/Unit/FactProvider/BrowserAcceptedLanguageTest.php | 2 +- Tests/Unit/FactProvider/IP2CountryTest.php | 2 +- php-cs-fixer.php | 9 +++++++-- 30 files changed, 36 insertions(+), 31 deletions(-) diff --git a/Classes/Command/UpdateIpDatabaseCommand.php b/Classes/Command/UpdateIpDatabaseCommand.php index ae91c52..5242c88 100644 --- a/Classes/Command/UpdateIpDatabaseCommand.php +++ b/Classes/Command/UpdateIpDatabaseCommand.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Command; diff --git a/Classes/Domain/Repository/RegionRepository.php b/Classes/Domain/Repository/RegionRepository.php index 609b5b5..f124e30 100644 --- a/Classes/Domain/Repository/RegionRepository.php +++ b/Classes/Domain/Repository/RegionRepository.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Domain\Repository; diff --git a/Classes/Exception.php b/Classes/Exception.php index e68620a..6fa0777 100644 --- a/Classes/Exception.php +++ b/Classes/Exception.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate; diff --git a/Classes/Exception/IllegalActionException.php b/Classes/Exception/IllegalActionException.php index 19af168..bc22ce2 100644 --- a/Classes/Exception/IllegalActionException.php +++ b/Classes/Exception/IllegalActionException.php @@ -6,7 +6,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Exception; diff --git a/Classes/Exception/IllegalFactProviderException.php b/Classes/Exception/IllegalFactProviderException.php index ac6f41f..b568cbf 100644 --- a/Classes/Exception/IllegalFactProviderException.php +++ b/Classes/Exception/IllegalFactProviderException.php @@ -6,7 +6,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Exception; diff --git a/Classes/Exception/IllegalJudgeException.php b/Classes/Exception/IllegalJudgeException.php index 172cf4a..60b95a8 100644 --- a/Classes/Exception/IllegalJudgeException.php +++ b/Classes/Exception/IllegalJudgeException.php @@ -6,7 +6,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Exception; diff --git a/Classes/Exception/InvalidActionName.php b/Classes/Exception/InvalidActionName.php index 0a619b7..a9ceea4 100644 --- a/Classes/Exception/InvalidActionName.php +++ b/Classes/Exception/InvalidActionName.php @@ -6,7 +6,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Exception; diff --git a/Classes/FactProvider/AbstractFactProvider.php b/Classes/FactProvider/AbstractFactProvider.php index 38e42ac..d9d838d 100644 --- a/Classes/FactProvider/AbstractFactProvider.php +++ b/Classes/FactProvider/AbstractFactProvider.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\FactProvider; diff --git a/Classes/FactProvider/BrowserAcceptedLanguage.php b/Classes/FactProvider/BrowserAcceptedLanguage.php index acc1ac1..2aac3e5 100644 --- a/Classes/FactProvider/BrowserAcceptedLanguage.php +++ b/Classes/FactProvider/BrowserAcceptedLanguage.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\FactProvider; diff --git a/Classes/FactProvider/IP2Country.php b/Classes/FactProvider/IP2Country.php index e4e4dee..7edcca0 100644 --- a/Classes/FactProvider/IP2Country.php +++ b/Classes/FactProvider/IP2Country.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\FactProvider; diff --git a/Classes/FactProvider/StaticFactProvider.php b/Classes/FactProvider/StaticFactProvider.php index a77c963..8de82b1 100644 --- a/Classes/FactProvider/StaticFactProvider.php +++ b/Classes/FactProvider/StaticFactProvider.php @@ -6,7 +6,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\FactProvider; diff --git a/Classes/Hook/OverrideIconOverlayHook.php b/Classes/Hook/OverrideIconOverlayHook.php index 964236f..1df5519 100644 --- a/Classes/Hook/OverrideIconOverlayHook.php +++ b/Classes/Hook/OverrideIconOverlayHook.php @@ -6,7 +6,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Hook; diff --git a/Classes/Judge/AbstractJudge.php b/Classes/Judge/AbstractJudge.php index fa20c90..cb06199 100644 --- a/Classes/Judge/AbstractJudge.php +++ b/Classes/Judge/AbstractJudge.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Judge; diff --git a/Classes/Judge/Condition.php b/Classes/Judge/Condition.php index 0d330c3..7b450c2 100644 --- a/Classes/Judge/Condition.php +++ b/Classes/Judge/Condition.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Judge; diff --git a/Classes/Judge/Decision.php b/Classes/Judge/Decision.php index 313d82a..299ddec 100644 --- a/Classes/Judge/Decision.php +++ b/Classes/Judge/Decision.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Judge; diff --git a/Classes/Judge/Fixed.php b/Classes/Judge/Fixed.php index 520da49..da0b3d2 100644 --- a/Classes/Judge/Fixed.php +++ b/Classes/Judge/Fixed.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Judge; diff --git a/Classes/Middleware/LanguageRedirectMiddleware.php b/Classes/Middleware/LanguageRedirectMiddleware.php index 9827e5d..5c5a3a5 100644 --- a/Classes/Middleware/LanguageRedirectMiddleware.php +++ b/Classes/Middleware/LanguageRedirectMiddleware.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Middleware; diff --git a/Classes/Middleware/PageUnavailableMiddleware.php b/Classes/Middleware/PageUnavailableMiddleware.php index 5ba6a2d..0db527f 100644 --- a/Classes/Middleware/PageUnavailableMiddleware.php +++ b/Classes/Middleware/PageUnavailableMiddleware.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Middleware; diff --git a/Classes/Processor/Court.php b/Classes/Processor/Court.php index c1fdef0..adaaf59 100644 --- a/Classes/Processor/Court.php +++ b/Classes/Processor/Court.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Processor; diff --git a/Classes/Processor/ProcessorInterface.php b/Classes/Processor/ProcessorInterface.php index 40a8753..bdde760 100644 --- a/Classes/Processor/ProcessorInterface.php +++ b/Classes/Processor/ProcessorInterface.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Processor; diff --git a/Classes/Store/SessionStore.php b/Classes/Store/SessionStore.php index 468cf55..7abd4b1 100644 --- a/Classes/Store/SessionStore.php +++ b/Classes/Store/SessionStore.php @@ -6,7 +6,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Store; diff --git a/Classes/Utility/LocateUtility.php b/Classes/Utility/LocateUtility.php index 815a7d3..022f2a4 100644 --- a/Classes/Utility/LocateUtility.php +++ b/Classes/Utility/LocateUtility.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Utility; diff --git a/Classes/Verdict/AbstractVerdict.php b/Classes/Verdict/AbstractVerdict.php index 57fff9f..f59d849 100644 --- a/Classes/Verdict/AbstractVerdict.php +++ b/Classes/Verdict/AbstractVerdict.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Verdict; diff --git a/Classes/Verdict/Redirect.php b/Classes/Verdict/Redirect.php index 6d476fa..fcc2edd 100644 --- a/Classes/Verdict/Redirect.php +++ b/Classes/Verdict/Redirect.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Verdict; diff --git a/Tests/Functional/FrontendTest.php b/Tests/Functional/FrontendTest.php index 2cff4f1..d0d3c36 100644 --- a/Tests/Functional/FrontendTest.php +++ b/Tests/Functional/FrontendTest.php @@ -6,7 +6,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Tests\Functional; diff --git a/Tests/Functional/Store/Session/SessionStoreTest.php b/Tests/Functional/Store/Session/SessionStoreTest.php index dbe6bd0..821100f 100644 --- a/Tests/Functional/Store/Session/SessionStoreTest.php +++ b/Tests/Functional/Store/Session/SessionStoreTest.php @@ -6,7 +6,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Tests\Functional\Store\Session; diff --git a/Tests/Functional/Utility/LocateUtilityTest.php b/Tests/Functional/Utility/LocateUtilityTest.php index 13cd821..d0cfe11 100644 --- a/Tests/Functional/Utility/LocateUtilityTest.php +++ b/Tests/Functional/Utility/LocateUtilityTest.php @@ -6,7 +6,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Tests\Functional\Utility; diff --git a/Tests/Unit/FactProvider/BrowserAcceptedLanguageTest.php b/Tests/Unit/FactProvider/BrowserAcceptedLanguageTest.php index 1e146c3..2424a9e 100644 --- a/Tests/Unit/FactProvider/BrowserAcceptedLanguageTest.php +++ b/Tests/Unit/FactProvider/BrowserAcceptedLanguageTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Tests\Unit\FactProvider; diff --git a/Tests/Unit/FactProvider/IP2CountryTest.php b/Tests/Unit/FactProvider/IP2CountryTest.php index 50179cd..a31fff0 100644 --- a/Tests/Unit/FactProvider/IP2CountryTest.php +++ b/Tests/Unit/FactProvider/IP2CountryTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * - * Florian Wessels , Leuchtfeuer Digital Marketing + * Team YD , Leuchtfeuer Digital Marketing */ namespace Leuchtfeuer\Locate\Tests\Unit\FactProvider; diff --git a/php-cs-fixer.php b/php-cs-fixer.php index 9f08054..0c515f4 100644 --- a/php-cs-fixer.php +++ b/php-cs-fixer.php @@ -12,7 +12,7 @@ For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code. -Florian Wessels , Leuchtfeuer Digital Marketing +Team YD , Leuchtfeuer Digital Marketing COMMENT; $finder = (new PhpCsFixer\Finder()) @@ -30,6 +30,7 @@ ->setRiskyAllowed(true) ->setRules([ '@DoctrineAnnotation' => true, + '@PER' => true, '@PSR2' => true, 'array_syntax' => ['syntax' => 'short'], 'blank_line_after_opening_tag' => true, @@ -39,6 +40,7 @@ 'concat_space' => ['spacing' => 'one'], 'declare_equal_normalize' => ['space' => 'none'], 'dir_constant' => true, + 'function_to_constant' => ['functions' => ['get_called_class', 'get_class', 'get_class_this', 'php_sapi_name', 'phpversion', 'pi']], 'function_typehint_space' => true, 'header_comment' => [ 'header' => $headerComment, @@ -48,6 +50,7 @@ ], 'lowercase_cast' => true, 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], + 'modernize_strpos' => true, 'modernize_types_casting' => true, 'native_function_casing' => true, 'new_with_braces' => true, @@ -66,6 +69,7 @@ 'no_unneeded_control_parentheses' => true, 'no_unused_imports' => true, 'no_useless_else' => true, + 'no_useless_nullsafe_operator' => true, 'no_whitespace_in_blank_line' => true, 'ordered_imports' => true, 'php_unit_construct' => ['assertions' => ['assertEquals', 'assertSame', 'assertNotEquals', 'assertNotSame']], @@ -83,6 +87,7 @@ 'single_line_comment_style' => ['comment_types' => ['hash']], 'single_trait_insert_per_statement' => true, 'trailing_comma_in_multiline' => ['elements' => ['arrays']], - 'whitespace_after_comma_in_array' => true, + 'whitespace_after_comma_in_array' => ['ensure_single_space' => true], + 'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false], ]) ->setFinder($finder);