diff --git a/Classes/Rules.php b/Classes/Rules.php index ab9403e..23cae7a 100644 --- a/Classes/Rules.php +++ b/Classes/Rules.php @@ -139,7 +139,7 @@ public static function loadDefaults(): void * @param array $rules */ public static function addRulesForFrontend( - array $rules + array $rules, ): void { ArrayUtility::mergeRecursiveWithOverrule(self::$rulesForFrontend, $rules); } @@ -152,7 +152,7 @@ public static function addRulesForFrontend( * @param array $rules */ public static function addRulesForBackend( - array $rules + array $rules, ): void { ArrayUtility::mergeRecursiveWithOverrule(self::$rulesForBackend, $rules); } diff --git a/Classes/Sanitizer.php b/Classes/Sanitizer.php index 0c445c9..e312d47 100644 --- a/Classes/Sanitizer.php +++ b/Classes/Sanitizer.php @@ -239,7 +239,7 @@ protected function getRules(): array */ protected function sanitizeArrayByRules( array $arrayToSanitize, - array $rules + array $rules, ): array { if (empty($rules)) { return $arrayToSanitize; @@ -303,7 +303,7 @@ private function handleLogging( array $arrayToSanitize, $nameToSanitize, $initialValueToSanitize, - $sanitizedValue + $sanitizedValue, ): void { if (!Factory::getConfiguration()->isLogMode()) { return; @@ -338,7 +338,7 @@ private function handleDebugging( array $arrayToSanitize, $nameToSanitize, $initialValueToSanitize, - $sanitizedValue + $sanitizedValue, ): void { if (!DebugUtility::isDebugMode()) { return; diff --git a/Classes/Utility/FilterUtility.php b/Classes/Utility/FilterUtility.php index 4f9c615..b7fde8a 100644 --- a/Classes/Utility/FilterUtility.php +++ b/Classes/Utility/FilterUtility.php @@ -59,7 +59,7 @@ public function sanitizeByRule($valueToSanitize, $filterOrFilterConfig) */ protected function sanitizeByConfig( $valueToSanitize, - array $filterConfig + array $filterConfig, ) { $filters = $filterConfig; diff --git a/Classes/Utility/RulesUtility.php b/Classes/Utility/RulesUtility.php index d806bf2..091a496 100644 --- a/Classes/Utility/RulesUtility.php +++ b/Classes/Utility/RulesUtility.php @@ -134,7 +134,7 @@ private function getCommonRulesByName(array $rules, string $nameToSanitize): ?ar */ public function injectFromCurrentIntoNextLevelIfNotSet( array $rulesFromCurrentLevel, - array $rulesForNextLevel + array $rulesForNextLevel, ): array { $rulesForValue = $rulesForNextLevel; @@ -158,7 +158,7 @@ public function injectFromCurrentIntoNextLevelIfNotSet( */ private function injectDefaultRulesFromCurrentIntoNextLevelIfNotSet( array $rulesFromCurrentLevel, - array $rulesForNextLevel + array $rulesForNextLevel, ): array { $rulesForNextLevel = $this->injectRulesByKey( $rulesForNextLevel, @@ -177,7 +177,7 @@ private function injectDefaultRulesFromCurrentIntoNextLevelIfNotSet( */ private function injectCommonRulesFromCurrentIntoNextLevelIfNotSet( array $rulesFromCurrentLevel, - array $rulesForNextLevel + array $rulesForNextLevel, ): array { $rulesForNextLevel = $this->injectRulesByKey( $rulesForNextLevel, @@ -210,7 +210,7 @@ private function injectCommonRulesFromCurrentIntoNextLevelIfNotSet( private function injectRulesByKey( array $rulesForValue, array $allRules, - string $rulesKey + string $rulesKey, ): array { if (!array_key_exists($rulesKey, $rulesForValue)) { $rulesForValue[$rulesKey] = $allRules[$rulesKey] ?? []; diff --git a/Tests/Classes/Middleware/GlobalInputSanitizerMiddlewareTest.php b/Tests/Classes/Middleware/GlobalInputSanitizerMiddlewareTest.php index 3c3cc64..3c1e875 100644 --- a/Tests/Classes/Middleware/GlobalInputSanitizerMiddlewareTest.php +++ b/Tests/Classes/Middleware/GlobalInputSanitizerMiddlewareTest.php @@ -162,7 +162,7 @@ public function processCallsSanitizerCorrect() public function processCallsSanitizerAndSanitizesCorrectByRules( array $inputData, array $rules, - array $sanitizedData + array $sanitizedData, ) { $this->setExtConf(['stealthMode' => '0']); Rules::addRulesForFrontend($rules); diff --git a/Tests/Classes/SanitizerTest.php b/Tests/Classes/SanitizerTest.php index 0f21d37..761031b 100644 --- a/Tests/Classes/SanitizerTest.php +++ b/Tests/Classes/SanitizerTest.php @@ -49,7 +49,7 @@ class SanitizerTest extends AbstractTestCase public function sanitizeInputSanitizesCorrectByRules( array $inputData, array $rules, - array $sanitizedData + array $sanitizedData, ) { $this->addRules($rules); diff --git a/Tests/Classes/Utility/ConfigurationUtilityTest.php b/Tests/Classes/Utility/ConfigurationUtilityTest.php index bea53ec..0816603 100644 --- a/Tests/Classes/Utility/ConfigurationUtilityTest.php +++ b/Tests/Classes/Utility/ConfigurationUtilityTest.php @@ -141,7 +141,7 @@ public function getExtensionConfigurationLoadsCorrect( bool $isDebugMode, bool $isLogMode, bool $isStealthMode, - int $stealthModeStoragePid + int $stealthModeStoragePid, ) { $config = Factory::getConfiguration(); // now override the extconf array property