@@ -67,7 +67,7 @@ |
||
| 67 | 67 | }, |
| 68 | 68 | function ($arguments, $str) { |
| 69 | 69 | return VersionNumberUtility::convertVersionNumberToInteger(TYPO3_branch) >= |
| 70 | - VersionNumberUtility::convertVersionNumberToInteger($str); |
|
| 70 | + VersionNumberUtility::convertVersionNumberToInteger($str); |
|
| 71 | 71 | } |
| 72 | 72 | ); |
| 73 | 73 | } |
@@ -51,10 +51,10 @@ discard block |
||
| 51 | 51 | { |
| 52 | 52 | return new ExpressionFunction( |
| 53 | 53 | 'ip', |
| 54 | - function () { |
|
| 54 | + function() { |
|
| 55 | 55 | // Not implemented, we only use the evaluator |
| 56 | 56 | }, |
| 57 | - function ($arguments, $str) { |
|
| 57 | + function($arguments, $str) { |
|
| 58 | 58 | if ($str === 'devIP') { |
| 59 | 59 | $str = trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'] ?? ''); |
| 60 | 60 | } |
@@ -67,10 +67,10 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | return new ExpressionFunction( |
| 69 | 69 | 'compatVersion', |
| 70 | - function () { |
|
| 70 | + function() { |
|
| 71 | 71 | // Not implemented, we only use the evaluator |
| 72 | 72 | }, |
| 73 | - function ($arguments, $str) { |
|
| 73 | + function($arguments, $str) { |
|
| 74 | 74 | return VersionNumberUtility::convertVersionNumberToInteger(TYPO3_branch) >= |
| 75 | 75 | VersionNumberUtility::convertVersionNumberToInteger($str); |
| 76 | 76 | } |
@@ -79,9 +79,9 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | protected function getLikeFunction(): ExpressionFunction |
| 81 | 81 | { |
| 82 | - return new ExpressionFunction('like', function () { |
|
| 82 | + return new ExpressionFunction('like', function() { |
|
| 83 | 83 | // Not implemented, we only use the evaluator |
| 84 | - }, function ($arguments, $haystack, $needle) { |
|
| 84 | + }, function($arguments, $haystack, $needle) { |
|
| 85 | 85 | $result = StringUtility::searchStringWildcard((string)$haystack, (string)$needle); |
| 86 | 86 | return $result; |
| 87 | 87 | }); |
@@ -94,9 +94,9 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | protected function getDateFunction(): ExpressionFunction |
| 96 | 96 | { |
| 97 | - return new ExpressionFunction('date', function () { |
|
| 97 | + return new ExpressionFunction('date', function() { |
|
| 98 | 98 | // Not implemented, we only use the evaluator |
| 99 | - }, function ($arguments, $format) { |
|
| 99 | + }, function($arguments, $format) { |
|
| 100 | 100 | return GeneralUtility::makeInstance(Context::class) |
| 101 | 101 | ->getAspect('date')->getDateTime()->format($format); |
| 102 | 102 | }); |
@@ -104,9 +104,9 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | protected function getFeatureToggleFunction(): ExpressionFunction |
| 106 | 106 | { |
| 107 | - return new ExpressionFunction('feature', function () { |
|
| 107 | + return new ExpressionFunction('feature', function() { |
|
| 108 | 108 | // Not implemented, we only use the evaluator |
| 109 | - }, function ($arguments, $featureName) { |
|
| 109 | + }, function($arguments, $featureName) { |
|
| 110 | 110 | return GeneralUtility::makeInstance(Features::class) |
| 111 | 111 | ->isFeatureEnabled($featureName); |
| 112 | 112 | }); |
@@ -114,9 +114,9 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | public function getTraverseArrayFunction(): ExpressionFunction |
| 116 | 116 | { |
| 117 | - return new ExpressionFunction('traverse', function () { |
|
| 117 | + return new ExpressionFunction('traverse', function() { |
|
| 118 | 118 | // Not implemented, we only use the evaluator |
| 119 | - }, function ($arguments, $array, $path) { |
|
| 119 | + }, function($arguments, $array, $path) { |
|
| 120 | 120 | if (!is_array($array) || !is_string($path) || $path === '') { |
| 121 | 121 | return ''; |
| 122 | 122 | } |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | // This callback filters empty strings, array and null but keeps zero integers |
| 168 | 168 | $parameters = ArrayUtility::filterRecursive( |
| 169 | 169 | $parameters, |
| 170 | - function ($item) { |
|
| 170 | + function($item) { |
|
| 171 | 171 | return $item !== '' && $item !== [] && $item !== null; |
| 172 | 172 | } |
| 173 | 173 | ); |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | $incompleteWizards = $upgradeWizardsService->getUpgradeWizardsList(); |
| 156 | 156 | $incompleteWizards = array_filter( |
| 157 | 157 | $incompleteWizards, |
| 158 | - function ($wizard) { |
|
| 158 | + function($wizard) { |
|
| 159 | 159 | return $wizard['shouldRenderWizard']; |
| 160 | 160 | } |
| 161 | 161 | ); |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | $attributes = array_merge($attributes, $options['additionalAttributes']); |
| 197 | 197 | } |
| 198 | 198 | if (isset($options['data']) && is_array($options['data'])) { |
| 199 | - array_walk($options['data'], function (&$value, $key) use (&$attributes) { |
|
| 199 | + array_walk($options['data'], function(&$value, $key) use (&$attributes) { |
|
| 200 | 200 | $attributes['data-' . $key] = $value; |
| 201 | 201 | }); |
| 202 | 202 | } |
@@ -180,7 +180,7 @@ |
||
| 180 | 180 | if (isset($options['data']) && is_array($options['data'])) { |
| 181 | 181 | array_walk( |
| 182 | 182 | $options['data'], |
| 183 | - function (&$value, $key) use (&$attributes) { |
|
| 183 | + function(&$value, $key) use (&$attributes) { |
|
| 184 | 184 | $attributes['data-' . $key] = $value; |
| 185 | 185 | } |
| 186 | 186 | ); |
@@ -88,8 +88,8 @@ |
||
| 88 | 88 | public function getDescription(): string |
| 89 | 89 | { |
| 90 | 90 | return 'The extension "rsaauth" adds a public/private key based encryption for Backend and Frontend' |
| 91 | - . ' login passwords. The approach is limited and has various flaws. The extension is fully' |
|
| 92 | - . ' obsolete if the instance uses HTTPS.'; |
|
| 91 | + . ' login passwords. The approach is limited and has various flaws. The extension is fully' |
|
| 92 | + . ' obsolete if the instance uses HTTPS.'; |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | public function getDescription(): string |
| 89 | 89 | { |
| 90 | 90 | return 'The extension "taskcenter" adds a view for Backend users to run configured tasks.' |
| 91 | - . ' It is only useful if properly configured.'; |
|
| 91 | + . ' It is only useful if properly configured.'; |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | '/', |
| 90 | 90 | (string)$fileInfo->file($this->getPathname(), FILEINFO_EXTENSION) |
| 91 | 91 | ), |
| 92 | - function ($item) { |
|
| 92 | + function($item) { |
|
| 93 | 93 | // filter invalid items ('???' is used if not found in magic.mime database) |
| 94 | 94 | return $item !== '' && $item !== '???'; |
| 95 | 95 | } |
@@ -1370,7 +1370,7 @@ discard block |
||
| 1370 | 1370 | // sanitize module names in internal 'paths' |
| 1371 | 1371 | $internalPathModuleNames = array_keys($requireJsConfig['internal']['paths'] ?? []); |
| 1372 | 1372 | $sanitizedInternalPathModuleNames = array_map( |
| 1373 | - function ($moduleName) { |
|
| 1373 | + function($moduleName) { |
|
| 1374 | 1374 | // trim spaces and slashes & add ending slash |
| 1375 | 1375 | return trim($moduleName, ' /') . '/'; |
| 1376 | 1376 | }, |
@@ -1470,7 +1470,7 @@ discard block |
||
| 1470 | 1470 | { |
| 1471 | 1471 | return array_filter( |
| 1472 | 1472 | $array, |
| 1473 | - function (string $key) use ($keys, $keep) { |
|
| 1473 | + function(string $key) use ($keys, $keep) { |
|
| 1474 | 1474 | return in_array($key, $keys, true) === $keep; |
| 1475 | 1475 | }, |
| 1476 | 1476 | ARRAY_FILTER_USE_KEY |
@@ -361,14 +361,14 @@ discard block |
||
| 361 | 361 | { |
| 362 | 362 | foreach ($newState as $var => $value) { |
| 363 | 363 | switch ($var) { |
| 364 | - case 'locales': |
|
| 365 | - break; |
|
| 366 | - case 'metaTagRegistry': |
|
| 367 | - $this->metaTagRegistry->updateState($value); |
|
| 368 | - break; |
|
| 369 | - default: |
|
| 370 | - $this->{$var} = $value; |
|
| 371 | - break; |
|
| 364 | + case 'locales': |
|
| 365 | + break; |
|
| 366 | + case 'metaTagRegistry': |
|
| 367 | + $this->metaTagRegistry->updateState($value); |
|
| 368 | + break; |
|
| 369 | + default: |
|
| 370 | + $this->{$var} = $value; |
|
| 371 | + break; |
|
| 372 | 372 | } |
| 373 | 373 | } |
| 374 | 374 | } |
@@ -382,14 +382,14 @@ discard block |
||
| 382 | 382 | $state = []; |
| 383 | 383 | foreach (get_object_vars($this) as $var => $value) { |
| 384 | 384 | switch ($var) { |
| 385 | - case 'locales': |
|
| 386 | - break; |
|
| 387 | - case 'metaTagRegistry': |
|
| 388 | - $state[$var] = $this->metaTagRegistry->getState(); |
|
| 389 | - break; |
|
| 390 | - default: |
|
| 391 | - $state[$var] = $value; |
|
| 392 | - break; |
|
| 385 | + case 'locales': |
|
| 386 | + break; |
|
| 387 | + case 'metaTagRegistry': |
|
| 388 | + $state[$var] = $this->metaTagRegistry->getState(); |
|
| 389 | + break; |
|
| 390 | + default: |
|
| 391 | + $state[$var] = $value; |
|
| 392 | + break; |
|
| 393 | 393 | } |
| 394 | 394 | } |
| 395 | 395 | return $state; |