Skip to content

Commit

Permalink
Cleanup fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbochmann committed Sep 19, 2024
1 parent 8feedb7 commit abca865
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Classes/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static function loadDefaults(): void
* @param array<string, mixed> $rules
*/
public static function addRulesForFrontend(
array $rules
array $rules,
): void {
ArrayUtility::mergeRecursiveWithOverrule(self::$rulesForFrontend, $rules);
}
Expand All @@ -152,7 +152,7 @@ public static function addRulesForFrontend(
* @param array<string, mixed> $rules
*/
public static function addRulesForBackend(
array $rules
array $rules,
): void {
ArrayUtility::mergeRecursiveWithOverrule(self::$rulesForBackend, $rules);
}
Expand Down
6 changes: 3 additions & 3 deletions Classes/Sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ protected function getRules(): array
*/
protected function sanitizeArrayByRules(
array $arrayToSanitize,
array $rules
array $rules,
): array {
if (empty($rules)) {
return $arrayToSanitize;
Expand Down Expand Up @@ -303,7 +303,7 @@ private function handleLogging(
array $arrayToSanitize,
$nameToSanitize,
$initialValueToSanitize,
$sanitizedValue
$sanitizedValue,
): void {
if (!Factory::getConfiguration()->isLogMode()) {
return;
Expand Down Expand Up @@ -338,7 +338,7 @@ private function handleDebugging(
array $arrayToSanitize,
$nameToSanitize,
$initialValueToSanitize,
$sanitizedValue
$sanitizedValue,
): void {
if (!DebugUtility::isDebugMode()) {
return;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Utility/FilterUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function sanitizeByRule($valueToSanitize, $filterOrFilterConfig)
*/
protected function sanitizeByConfig(
$valueToSanitize,
array $filterConfig
array $filterConfig,
) {
$filters = $filterConfig;

Expand Down
8 changes: 4 additions & 4 deletions Classes/Utility/RulesUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function getCommonRulesByName(array $rules, string $nameToSanitize): ?ar
*/
public function injectFromCurrentIntoNextLevelIfNotSet(
array $rulesFromCurrentLevel,
array $rulesForNextLevel
array $rulesForNextLevel,
): array {
$rulesForValue = $rulesForNextLevel;

Expand All @@ -158,7 +158,7 @@ public function injectFromCurrentIntoNextLevelIfNotSet(
*/
private function injectDefaultRulesFromCurrentIntoNextLevelIfNotSet(
array $rulesFromCurrentLevel,
array $rulesForNextLevel
array $rulesForNextLevel,
): array {
$rulesForNextLevel = $this->injectRulesByKey(
$rulesForNextLevel,
Expand All @@ -177,7 +177,7 @@ private function injectDefaultRulesFromCurrentIntoNextLevelIfNotSet(
*/
private function injectCommonRulesFromCurrentIntoNextLevelIfNotSet(
array $rulesFromCurrentLevel,
array $rulesForNextLevel
array $rulesForNextLevel,
): array {
$rulesForNextLevel = $this->injectRulesByKey(
$rulesForNextLevel,
Expand Down Expand Up @@ -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] ?? [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Tests/Classes/SanitizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class SanitizerTest extends AbstractTestCase
public function sanitizeInputSanitizesCorrectByRules(
array $inputData,
array $rules,
array $sanitizedData
array $sanitizedData,
) {
$this->addRules($rules);

Expand Down
2 changes: 1 addition & 1 deletion Tests/Classes/Utility/ConfigurationUtilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abca865

Please sign in to comment.