@@ -109,7 +109,7 @@ |
||
| 109 | 109 | 1533820194 |
| 110 | 110 | ); |
| 111 | 111 | } |
| 112 | - $hashInstance = GeneralUtility::makeInstance($defaultHashClassName, $defaultHashOptions); |
|
| 112 | + $hashInstance = GeneralUtility::makeInstance($defaultHashClassName, $defaultHashOptions); |
|
| 113 | 113 | if (!$hashInstance instanceof PasswordHashInterface) { |
| 114 | 114 | throw new \LogicException( |
| 115 | 115 | 'Configured default hash method ' . $defaultHashClassName . ' is not an instance of PasswordHashInterface', |
@@ -564,7 +564,7 @@ |
||
| 564 | 564 | |
| 565 | 565 | return array_filter( |
| 566 | 566 | array_map( |
| 567 | - function (array $record) { |
|
| 567 | + function(array $record) { |
|
| 568 | 568 | BackendUtility::workspaceOL( |
| 569 | 569 | $this->tableName, |
| 570 | 570 | $record, |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | protected function resolveAspectFieldValues(array $data): array |
| 101 | 101 | { |
| 102 | 102 | return array_map( |
| 103 | - function ($aspectFieldName) use ($data) { |
|
| 103 | + function($aspectFieldName) use ($data) { |
|
| 104 | 104 | return (int)($data[$aspectFieldName] ?? 0); |
| 105 | 105 | }, |
| 106 | 106 | $this->resolveAspectFieldNames() |
@@ -73,10 +73,10 @@ |
||
| 73 | 73 | */ |
| 74 | 74 | protected $overlayType; |
| 75 | 75 | |
| 76 | - public const OVERLAYS_OFF = 'off'; // config.sys_language_overlay = 0 |
|
| 77 | - public const OVERLAYS_MIXED = 'mixed'; // config.sys_language_overlay = 1 (keep the ones that are only available in default language) |
|
| 78 | - public const OVERLAYS_ON = 'on'; // "hideNonTranslated" |
|
| 79 | - public const OVERLAYS_ON_WITH_FLOATING = 'includeFloating'; // "hideNonTranslated" + records that are only available in polish |
|
| 76 | + public const OVERLAYS_OFF = 'off'; // config.sys_language_overlay = 0 |
|
| 77 | + public const OVERLAYS_MIXED = 'mixed'; // config.sys_language_overlay = 1 (keep the ones that are only available in default language) |
|
| 78 | + public const OVERLAYS_ON = 'on'; // "hideNonTranslated" |
|
| 79 | + public const OVERLAYS_ON_WITH_FLOATING = 'includeFloating'; // "hideNonTranslated" + records that are only available in polish |
|
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * Create the default language |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | $target = $this->container->get($service); |
| 103 | 103 | if ($method !== null) { |
| 104 | 104 | // Dispatch to configured method name instead of __invoke() |
| 105 | - $target = [ $target, $method ]; |
|
| 105 | + $target = [$target, $method]; |
|
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | if (!is_callable($target)) { |
@@ -779,7 +779,7 @@ |
||
| 779 | 779 | try { |
| 780 | 780 | $dataStructureIdentifier = $this->getDataStructureIdentifier($GLOBALS['TCA'][$table]['columns'][$field], $table, $field, $row); |
| 781 | 781 | $dataStructureArray = $this->parseDataStructureByIdentifier($dataStructureIdentifier); |
| 782 | - } catch (InvalidParentRowException|InvalidParentRowLoopException|InvalidParentRowRootException|InvalidPointerFieldValueException|InvalidIdentifierException $e) { |
|
| 782 | + } catch (InvalidParentRowException | InvalidParentRowLoopException | InvalidParentRowRootException | InvalidPointerFieldValueException | InvalidIdentifierException $e) { |
|
| 783 | 783 | } |
| 784 | 784 | |
| 785 | 785 | // Get flexform XML data |
@@ -47,8 +47,8 @@ |
||
| 47 | 47 | public function getExtensions(): array |
| 48 | 48 | { |
| 49 | 49 | return [ |
| 50 | - 'middlewares' => [ static::class, 'configureMiddlewares' ], |
|
| 51 | - 'backend.routes' => [ static::class, 'configureBackendRoutes' ], |
|
| 50 | + 'middlewares' => [static::class, 'configureMiddlewares'], |
|
| 51 | + 'backend.routes' => [static::class, 'configureBackendRoutes'], |
|
| 52 | 52 | ]; |
| 53 | 53 | } |
| 54 | 54 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | // provide an optional third parameter which is forwarded as |
| 69 | 69 | // dynamic path to getPackagePath(). |
| 70 | 70 | foreach ($extensions as $serviceName => $previousCallable) { |
| 71 | - $extensions[$serviceName] = function (ContainerInterface $container, $value) use ($previousCallable, $packagePath) { |
|
| 71 | + $extensions[$serviceName] = function(ContainerInterface $container, $value) use ($previousCallable, $packagePath) { |
|
| 72 | 72 | return ($previousCallable)($container, $value, $packagePath); |
| 73 | 73 | }; |
| 74 | 74 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | new Reference('service_container') |
| 140 | 140 | ]); |
| 141 | 141 | } else { |
| 142 | - $factoryDefinition->setFactory([ new Reference($this->registryServiceName), 'createService' ]); |
|
| 142 | + $factoryDefinition->setFactory([new Reference($this->registryServiceName), 'createService']); |
|
| 143 | 143 | $factoryDefinition->setArguments([ |
| 144 | 144 | $serviceProviderKey, |
| 145 | 145 | $serviceName, |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | new Reference('service_container') |
| 184 | 184 | ]); |
| 185 | 185 | } else { |
| 186 | - $factoryDefinition->setFactory([ new Reference($this->registryServiceName), 'extendService' ]); |
|
| 186 | + $factoryDefinition->setFactory([new Reference($this->registryServiceName), 'extendService']); |
|
| 187 | 187 | $factoryDefinition->setArguments([ |
| 188 | 188 | $serviceProviderKey, |
| 189 | 189 | $serviceName, |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | } |
| 262 | 262 | return [ |
| 263 | 263 | $serviceName . '_decorated_' . $counter, |
| 264 | - $counter === 1 ? $serviceName : $serviceName . '_decorated_' . ($counter-1) |
|
| 264 | + $counter === 1 ? $serviceName : $serviceName . '_decorated_' . ($counter - 1) |
|
| 265 | 265 | ]; |
| 266 | 266 | } |
| 267 | 267 | } |