@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | $direction = strtolower($direction); |
| 293 | 293 | @usort( |
| 294 | 294 | $items, |
| 295 | - function ($item1, $item2) use ($direction) { |
|
| 295 | + function($item1, $item2) use ($direction) { |
|
| 296 | 296 | if ($direction === 'desc') { |
| 297 | 297 | return strcasecmp($item1[0], $item2[0]) <= 0; |
| 298 | 298 | } |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | $direction = strtolower($direction); |
| 305 | 305 | @usort( |
| 306 | 306 | $items, |
| 307 | - function ($item1, $item2) use ($direction) { |
|
| 307 | + function($item1, $item2) use ($direction) { |
|
| 308 | 308 | if ($direction === 'desc') { |
| 309 | 309 | return strcasecmp($item1[1], $item2[1]) <= 0; |
| 310 | 310 | } |
@@ -189,7 +189,7 @@ |
||
| 189 | 189 | // All implementations of getTreeList allow to pass the ids negative to include them into the result |
| 190 | 190 | // otherwise only childpages are returned |
| 191 | 191 | $storagePids = GeneralUtility::intExplode(',', $frameworkConfiguration['persistence']['storagePid']); |
| 192 | - array_walk($storagePids, function (&$storagePid) { |
|
| 192 | + array_walk($storagePids, function(&$storagePid) { |
|
| 193 | 193 | if ($storagePid > 0) { |
| 194 | 194 | $storagePid = -$storagePid; |
| 195 | 195 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | // check for required options being set |
| 62 | 62 | array_walk( |
| 63 | 63 | $this->supportedOptions, |
| 64 | - function ($supportedOptionData, $supportedOptionName, $options) { |
|
| 64 | + function($supportedOptionData, $supportedOptionName, $options) { |
|
| 65 | 65 | if (isset($supportedOptionData[3]) && !array_key_exists($supportedOptionName, $options)) { |
| 66 | 66 | throw new InvalidValidationOptionsException('Required validation option not set: ' . $supportedOptionName, 1339163922); |
| 67 | 67 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | // merge with default values |
| 73 | 73 | $this->options = array_merge( |
| 74 | 74 | array_map( |
| 75 | - function ($value) { |
|
| 75 | + function($value) { |
|
| 76 | 76 | return $value[0]; |
| 77 | 77 | }, |
| 78 | 78 | $this->supportedOptions |
@@ -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 | |