Skip to content

Commit

Permalink
Cleanup fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbochmann committed Nov 6, 2023
1 parent 94f362e commit d97e73d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Classes/Utility/ConfigurationUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ConfigurationUtility implements \TYPO3\CMS\Core\SingletonInterface
/**
* @var array<string, string>
*/
protected $extensionConfiguration = null;
protected $extensionConfiguration;

/**
* The extension configuration!
Expand Down
6 changes: 3 additions & 3 deletions Classes/Utility/FilterUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ protected function normalizeFilter($filter): int
// @TODO: remove after dropping support for php 7.2 and add support for php 8
// @see https://wiki.php.net/rfc/deprecations_php_7_4#filter_sanitize_magic_quotes
if (
defined('FILTER_SANITIZE_MAGIC_QUOTES') &&
constant('FILTER_SANITIZE_MAGIC_QUOTES') === $filter &&
defined('FILTER_SANITIZE_ADD_SLASHES')
defined('FILTER_SANITIZE_MAGIC_QUOTES')
&& constant('FILTER_SANITIZE_MAGIC_QUOTES') === $filter
&& defined('FILTER_SANITIZE_ADD_SLASHES')
) {
$filter = (int) constant('FILTER_SANITIZE_ADD_SLASHES');
}
Expand Down
4 changes: 2 additions & 2 deletions Classes/Utility/RulesUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ private function getCommonRulesByName(array $rules, string $nameToSanitize): ?ar
$commonRules = null;

if (!(
isset($rules[Rules::COMMON_RULES_KEY]) &&
isset($rules[Rules::COMMON_RULES_KEY][$nameToSanitize])
isset($rules[Rules::COMMON_RULES_KEY])
&& isset($rules[Rules::COMMON_RULES_KEY][$nameToSanitize])
)) {
return $commonRules;
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Classes/Utility/DebugUtilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function debugDoesNotEchoButDesctructDoes()
...[
$this->callback(
function ($data) use ($debugs, &$echoDebugCall) {
$echoDebugCall = $echoDebugCall + 1;
++$echoDebugCall;
$this->assertSame(
$debugs[$echoDebugCall][0],
$data,
Expand Down

0 comments on commit d97e73d

Please sign in to comment.