@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | /** @var \TYPO3\CMS\Core\Log\Writer\WriterInterface $logWriter */ |
146 | 146 | $logWriter = GeneralUtility::makeInstance($logWriterClassName, $logWriterOptions); |
147 | 147 | $logger->addWriter($severityLevel, $logWriter); |
148 | - } catch (InvalidArgumentException|InvalidLogWriterConfigurationException $e) { |
|
148 | + } catch (InvalidArgumentException | InvalidLogWriterConfigurationException $e) { |
|
149 | 149 | $logger->warning('Instantiation of LogWriter "' . $logWriterClassName . '" failed for logger ' . $logger->getName() . ' (' . $e->getMessage() . ')'); |
150 | 150 | } |
151 | 151 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | /** @var \TYPO3\CMS\Core\Log\Processor\ProcessorInterface $logProcessor */ |
167 | 167 | $logProcessor = GeneralUtility::makeInstance($logProcessorClassName, $logProcessorOptions); |
168 | 168 | $logger->addProcessor($severityLevel, $logProcessor); |
169 | - } catch (InvalidArgumentException|InvalidLogProcessorConfigurationException $e) { |
|
169 | + } catch (InvalidArgumentException | InvalidLogProcessorConfigurationException $e) { |
|
170 | 170 | $logger->warning('Instantiation of LogProcessor "' . $logProcessorClassName . '" failed for logger ' . $logger->getName() . ' (' . $e->getMessage() . ')'); |
171 | 171 | } |
172 | 172 | } |
@@ -403,7 +403,7 @@ |
||
403 | 403 | try { |
404 | 404 | $packagePath = PathUtility::sanitizeTrailingSeparator($this->packagesBasePath . $stateConfiguration['packagePath']); |
405 | 405 | $package = new Package($this, $packageKey, $packagePath); |
406 | - } catch (InvalidPackagePathException|InvalidPackageKeyException|InvalidPackageManifestException $exception) { |
|
406 | + } catch (InvalidPackagePathException | InvalidPackageKeyException | InvalidPackageManifestException $exception) { |
|
407 | 407 | $this->unregisterPackageByPackageKey($packageKey); |
408 | 408 | $packageStatesHasChanged = true; |
409 | 409 | continue; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | public function renderTceformsSelectDropdown(&$PA) |
44 | 44 | { |
45 | 45 | $allowedStorageIds = array_map( |
46 | - function (ResourceStorage $storage) { |
|
46 | + function(ResourceStorage $storage) { |
|
47 | 47 | return $storage->getUid(); |
48 | 48 | }, |
49 | 49 | $this->getBackendUserAuthentication()->getFileStorages() |
@@ -47,18 +47,18 @@ |
||
47 | 47 | public function getFactories(): array |
48 | 48 | { |
49 | 49 | return [ |
50 | - Application::class => [ static::class, 'getApplication' ], |
|
51 | - RequestHandler::class => [ static::class, 'getRequestHandler' ], |
|
52 | - RouteDispatcher::class => [ static::class, 'getRouteDispatcher' ], |
|
53 | - 'backend.middlewares' => [ static::class, 'getBackendMiddlewares' ], |
|
54 | - 'backend.routes' => [ static::class, 'getBackendRoutes' ], |
|
50 | + Application::class => [static::class, 'getApplication'], |
|
51 | + RequestHandler::class => [static::class, 'getRequestHandler'], |
|
52 | + RouteDispatcher::class => [static::class, 'getRouteDispatcher'], |
|
53 | + 'backend.middlewares' => [static::class, 'getBackendMiddlewares'], |
|
54 | + 'backend.routes' => [static::class, 'getBackendRoutes'], |
|
55 | 55 | ]; |
56 | 56 | } |
57 | 57 | |
58 | 58 | public function getExtensions(): array |
59 | 59 | { |
60 | 60 | return [ |
61 | - Router::class => [ static::class, 'configureBackendRouter' ], |
|
61 | + Router::class => [static::class, 'configureBackendRouter'], |
|
62 | 62 | ] + parent::getExtensions(); |
63 | 63 | } |
64 | 64 |
@@ -584,7 +584,7 @@ discard block |
||
584 | 584 | return ArrayUtility::keepItemsInArray( |
585 | 585 | $items, |
586 | 586 | $result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems'], |
587 | - function ($value) { |
|
587 | + function($value) { |
|
588 | 588 | return $value[1]; |
589 | 589 | } |
590 | 590 | ); |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | } |
733 | 733 | |
734 | 734 | $allowedStorageIds = array_map( |
735 | - function (ResourceStorage $storage) { |
|
735 | + function(ResourceStorage $storage) { |
|
736 | 736 | return $storage->getUid(); |
737 | 737 | }, |
738 | 738 | $this->getBackendUser()->getFileStorages() |
@@ -740,7 +740,7 @@ discard block |
||
740 | 740 | |
741 | 741 | return array_filter( |
742 | 742 | $items, |
743 | - function (array $item) use ($allowedStorageIds) { |
|
743 | + function(array $item) use ($allowedStorageIds) { |
|
744 | 744 | $itemValue = $item[1] ?? null; |
745 | 745 | return empty($itemValue) |
746 | 746 | || in_array((int)$itemValue, $allowedStorageIds, true); |
@@ -834,7 +834,7 @@ discard block |
||
834 | 834 | } |
835 | 835 | // Sort fields by the translated value |
836 | 836 | if (!empty($excludeArrayTable)) { |
837 | - usort($excludeArrayTable, function (array $array1, array $array2) { |
|
837 | + usort($excludeArrayTable, function(array $array1, array $array2) { |
|
838 | 838 | $array1 = reset($array1); |
839 | 839 | $array2 = reset($array2); |
840 | 840 | if (is_string($array1) && is_string($array2)) { |
@@ -36,15 +36,15 @@ |
||
36 | 36 | public function getFactories(): array |
37 | 37 | { |
38 | 38 | return [ |
39 | - Object\Container\Container::class => [ static::class, 'getObjectContainer' ], |
|
40 | - Object\ObjectManager::class => [ static::class, 'getObjectManager' ], |
|
41 | - SignalSlot\Dispatcher::class => [ static::class, 'getSignalSlotDispatcher' ], |
|
42 | - Configuration\BackendConfigurationManager::class => [ static::class, 'getBackendConfigurationManager' ], |
|
43 | - Configuration\ConfigurationManager::class => [ static::class, 'getConfigurationManager' ], |
|
44 | - Reflection\ReflectionService::class => [ static::class, 'getReflectionService' ], |
|
45 | - Service\EnvironmentService::class => [ static::class, 'getEnvironmentService' ], |
|
46 | - Service\ExtensionService::class => [ static::class, 'getExtensionService' ], |
|
47 | - Security\Cryptography\HashService::class => [ static::class, 'getHashService' ], |
|
39 | + Object\Container\Container::class => [static::class, 'getObjectContainer'], |
|
40 | + Object\ObjectManager::class => [static::class, 'getObjectManager'], |
|
41 | + SignalSlot\Dispatcher::class => [static::class, 'getSignalSlotDispatcher'], |
|
42 | + Configuration\BackendConfigurationManager::class => [static::class, 'getBackendConfigurationManager'], |
|
43 | + Configuration\ConfigurationManager::class => [static::class, 'getConfigurationManager'], |
|
44 | + Reflection\ReflectionService::class => [static::class, 'getReflectionService'], |
|
45 | + Service\EnvironmentService::class => [static::class, 'getEnvironmentService'], |
|
46 | + Service\ExtensionService::class => [static::class, 'getExtensionService'], |
|
47 | + Security\Cryptography\HashService::class => [static::class, 'getHashService'], |
|
48 | 48 | ]; |
49 | 49 | } |
50 | 50 |
@@ -126,7 +126,7 @@ |
||
126 | 126 | try { |
127 | 127 | $input = new ArrayInput($this->getParameters(true), $schedulableCommand->getDefinition()); |
128 | 128 | $arguments = $input->__toString(); |
129 | - } catch (\Symfony\Component\Console\Exception\RuntimeException|InvalidArgumentException $e) { |
|
129 | + } catch (\Symfony\Component\Console\Exception\RuntimeException | InvalidArgumentException $e) { |
|
130 | 130 | return $label . "\n" |
131 | 131 | . sprintf( |
132 | 132 | $this->getLanguageService()->sL('LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.errorParsingArguments'), |
@@ -103,7 +103,7 @@ |
||
103 | 103 | $beforeSubstitution = $content; |
104 | 104 | $content = preg_replace_callback( |
105 | 105 | '/\\{\\$(.[^}]*)\\}/', |
106 | - function (array $matches) use ($siteSettings): string { |
|
106 | + function(array $matches) use ($siteSettings): string { |
|
107 | 107 | return isset($siteSettings[$matches[1]]) && !is_array($siteSettings[$matches[1]]) |
108 | 108 | ? (string)$siteSettings[$matches[1]] : $matches[0]; |
109 | 109 | }, |
@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | |
50 | 50 | protected function getLoginUserFunction(): ExpressionFunction |
51 | 51 | { |
52 | - return new ExpressionFunction('loginUser', function () { |
|
52 | + return new ExpressionFunction('loginUser', function() { |
|
53 | 53 | // Not implemented, we only use the evaluator |
54 | - }, function ($arguments, $str) { |
|
54 | + }, function($arguments, $str) { |
|
55 | 55 | $user = $arguments['frontend']->user ?? $arguments['backend']->user; |
56 | 56 | if ($user->isLoggedIn) { |
57 | 57 | foreach (GeneralUtility::trimExplode(',', $str, true) as $test) { |
@@ -66,9 +66,9 @@ discard block |
||
66 | 66 | |
67 | 67 | protected function getTSFEFunction(): ExpressionFunction |
68 | 68 | { |
69 | - return new ExpressionFunction('getTSFE', function () { |
|
69 | + return new ExpressionFunction('getTSFE', function() { |
|
70 | 70 | // Not implemented, we only use the evaluator |
71 | - }, function ($arguments) { |
|
71 | + }, function($arguments) { |
|
72 | 72 | if (($GLOBALS['TSFE'] ?? null) instanceof TypoScriptFrontendController) { |
73 | 73 | return $GLOBALS['TSFE']; |
74 | 74 | } |
@@ -78,9 +78,9 @@ discard block |
||
78 | 78 | |
79 | 79 | protected function getUsergroupFunction(): ExpressionFunction |
80 | 80 | { |
81 | - return new ExpressionFunction('usergroup', function () { |
|
81 | + return new ExpressionFunction('usergroup', function() { |
|
82 | 82 | // Not implemented, we only use the evaluator |
83 | - }, function ($arguments, $str) { |
|
83 | + }, function($arguments, $str) { |
|
84 | 84 | $user = $arguments['frontend']->user ?? $arguments['backend']->user; |
85 | 85 | $groupList = $user->userGroupList ?? ''; |
86 | 86 | // '0,-1' is the default usergroups string when not logged in! |
@@ -99,10 +99,10 @@ discard block |
||
99 | 99 | { |
100 | 100 | return new ExpressionFunction( |
101 | 101 | 'session', |
102 | - function () { |
|
102 | + function() { |
|
103 | 103 | // Not implemented, we only use the evaluator |
104 | 104 | }, |
105 | - function ($arguments, $str) { |
|
105 | + function($arguments, $str) { |
|
106 | 106 | $retVal = null; |
107 | 107 | $keyParts = explode('|', $str); |
108 | 108 | $sessionKey = array_shift($keyParts); |
@@ -129,10 +129,10 @@ discard block |
||
129 | 129 | { |
130 | 130 | return new ExpressionFunction( |
131 | 131 | 'site', |
132 | - function () { |
|
132 | + function() { |
|
133 | 133 | // Not implemented, we only use the evaluator |
134 | 134 | }, |
135 | - function ($arguments, $str) { |
|
135 | + function($arguments, $str) { |
|
136 | 136 | /** @var RequestWrapper $requestWrapper */ |
137 | 137 | $requestWrapper = $arguments['request']; |
138 | 138 | $site = $requestWrapper->getSite(); |
@@ -151,10 +151,10 @@ discard block |
||
151 | 151 | { |
152 | 152 | return new ExpressionFunction( |
153 | 153 | 'siteLanguage', |
154 | - function () { |
|
154 | + function() { |
|
155 | 155 | // Not implemented, we only use the evaluator |
156 | 156 | }, |
157 | - function ($arguments, $str) { |
|
157 | + function($arguments, $str) { |
|
158 | 158 | /** @var RequestWrapper $requestWrapper */ |
159 | 159 | $requestWrapper = $arguments['request']; |
160 | 160 | $siteLanguage = $requestWrapper->getSiteLanguage(); |