@@ -144,7 +144,7 @@ |
||
144 | 144 | */ |
145 | 145 | protected function getBParamDataAttributes() |
146 | 146 | { |
147 | - [$fieldRef, $rteParams, $rteConfig, , $irreObjectId] = explode('|', $this->bparams); |
|
147 | + [$fieldRef, $rteParams, $rteConfig,, $irreObjectId] = explode('|', $this->bparams); |
|
148 | 148 | |
149 | 149 | return [ |
150 | 150 | 'data-form-field-name' => 'data[' . $fieldRef . '][' . $rteParams . '][' . $rteConfig . ']', |
@@ -36,17 +36,17 @@ |
||
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' ], |
|
39 | + Object\Container\Container::class => [static::class, 'getObjectContainer'], |
|
40 | + Object\ObjectManager::class => [static::class, 'getObjectManager'], |
|
41 | 41 | // @deprecated since v11, will be removed in v12 |
42 | - SignalSlot\Dispatcher::class => [ static::class, 'getSignalSlotDispatcher' ], |
|
43 | - Configuration\BackendConfigurationManager::class => [ static::class, 'getBackendConfigurationManager' ], |
|
44 | - Configuration\ConfigurationManager::class => [ static::class, 'getConfigurationManager' ], |
|
45 | - Reflection\ReflectionService::class => [ static::class, 'getReflectionService' ], |
|
42 | + SignalSlot\Dispatcher::class => [static::class, 'getSignalSlotDispatcher'], |
|
43 | + Configuration\BackendConfigurationManager::class => [static::class, 'getBackendConfigurationManager'], |
|
44 | + Configuration\ConfigurationManager::class => [static::class, 'getConfigurationManager'], |
|
45 | + Reflection\ReflectionService::class => [static::class, 'getReflectionService'], |
|
46 | 46 | // @deprecated since v11, will be removed in v12 |
47 | - Service\EnvironmentService::class => [ static::class, 'getEnvironmentService' ], |
|
48 | - Service\ExtensionService::class => [ static::class, 'getExtensionService' ], |
|
49 | - Security\Cryptography\HashService::class => [ static::class, 'getHashService' ], |
|
47 | + Service\EnvironmentService::class => [static::class, 'getEnvironmentService'], |
|
48 | + Service\ExtensionService::class => [static::class, 'getExtensionService'], |
|
49 | + Security\Cryptography\HashService::class => [static::class, 'getHashService'], |
|
50 | 50 | ]; |
51 | 51 | } |
52 | 52 |
@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | foreach ($deficits as $key => $deficit) { |
76 | 76 | $message = ''; |
77 | - $extensionsToReport = count(array_filter($extensionsWithComposerDeficit, static function ($extensionDeficit) use ($key) { |
|
77 | + $extensionsToReport = count(array_filter($extensionsWithComposerDeficit, static function($extensionDeficit) use ($key) { |
|
78 | 78 | return $extensionDeficit === $key; |
79 | 79 | })); |
80 | 80 |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | if ($sortby === 'uid') { |
469 | 469 | usort( |
470 | 470 | $this->itemArray, |
471 | - function ($a, $b) { |
|
471 | + function($a, $b) { |
|
472 | 472 | return $a['id'] < $b['id'] ? -1 : 1; |
473 | 473 | } |
474 | 474 | ); |
@@ -1407,7 +1407,7 @@ discard block |
||
1407 | 1407 | } |
1408 | 1408 | |
1409 | 1409 | $purgedItemIds = []; |
1410 | - $callable =[$this, $purgeCallback]; |
|
1410 | + $callable = [$this, $purgeCallback]; |
|
1411 | 1411 | if (is_callable($callable)) { |
1412 | 1412 | $purgedItemIds = $callable($itemTableName, $itemIds); |
1413 | 1413 | } |
@@ -99,8 +99,8 @@ |
||
99 | 99 | <div class="col"> |
100 | 100 | <label class="form-label">' . |
101 | 101 | htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:info/Resources/Private/Language/locallang_webinfo.xlf:moduleFunctions.' . $name)) . |
102 | - '</label>' . |
|
103 | - $menu . |
|
102 | + '</label>' . |
|
103 | + $menu . |
|
104 | 104 | '</div>'; |
105 | 105 | if ($addCsh) { |
106 | 106 | $moduleMenu .= BackendUtility::cshItem('_MOD_web_info', $name, '', '<div class="col"><span class="btn btn-default btn-sm">|</span></div>'); |
@@ -48,19 +48,19 @@ |
||
48 | 48 | public function getFactories(): array |
49 | 49 | { |
50 | 50 | return [ |
51 | - Application::class => [ static::class, 'getApplication' ], |
|
52 | - RequestHandler::class => [ static::class, 'getRequestHandler' ], |
|
53 | - RouteDispatcher::class => [ static::class, 'getRouteDispatcher' ], |
|
54 | - UriBuilder::class => [ static::class, 'getUriBuilder' ], |
|
55 | - 'backend.middlewares' => [ static::class, 'getBackendMiddlewares' ], |
|
56 | - 'backend.routes' => [ static::class, 'getBackendRoutes' ], |
|
51 | + Application::class => [static::class, 'getApplication'], |
|
52 | + RequestHandler::class => [static::class, 'getRequestHandler'], |
|
53 | + RouteDispatcher::class => [static::class, 'getRouteDispatcher'], |
|
54 | + UriBuilder::class => [static::class, 'getUriBuilder'], |
|
55 | + 'backend.middlewares' => [static::class, 'getBackendMiddlewares'], |
|
56 | + 'backend.routes' => [static::class, 'getBackendRoutes'], |
|
57 | 57 | ]; |
58 | 58 | } |
59 | 59 | |
60 | 60 | public function getExtensions(): array |
61 | 61 | { |
62 | 62 | return [ |
63 | - Router::class => [ static::class, 'configureBackendRouter' ], |
|
63 | + Router::class => [static::class, 'configureBackendRouter'], |
|
64 | 64 | ] + parent::getExtensions(); |
65 | 65 | } |
66 | 66 |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | if (MathUtility::canBeInterpretedAsInteger($fileUid)) { |
228 | 228 | try { |
229 | 229 | $file = GeneralUtility::makeInstance(ResourceFactory::class)->getFileObject($fileUid); |
230 | - } catch (FileDoesNotExistException|\InvalidArgumentException $e) { |
|
230 | + } catch (FileDoesNotExistException | \InvalidArgumentException $e) { |
|
231 | 231 | } |
232 | 232 | } |
233 | 233 | return $file; |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | foreach ($config['cropVariants'] as $id => $cropVariant) { |
278 | 278 | |
279 | 279 | // Filter allowed aspect ratios |
280 | - $cropVariant['allowedAspectRatios'] = array_filter($cropVariant['allowedAspectRatios'] ?? [], static function ($aspectRatio) { |
|
280 | + $cropVariant['allowedAspectRatios'] = array_filter($cropVariant['allowedAspectRatios'] ?? [], static function($aspectRatio) { |
|
281 | 281 | return !(bool)($aspectRatio['disabled'] ?? false); |
282 | 282 | }); |
283 | 283 |
@@ -522,7 +522,7 @@ |
||
522 | 522 | // Processing related GET / POST vars |
523 | 523 | $this->data = $parsedBody['data'] ?? []; |
524 | 524 | $this->cmd = $parsedBody['cmd'] ?? []; |
525 | - $this->mirror = $parsedBody['mirror'] ?? []; |
|
525 | + $this->mirror = $parsedBody['mirror'] ?? []; |
|
526 | 526 | $this->returnNewPageId = (bool)($parsedBody['returnNewPageId'] ?? false); |
527 | 527 | |
528 | 528 | // Only options related to $this->data submission are included here |
@@ -114,7 +114,7 @@ |
||
114 | 114 | |
115 | 115 | $overwrittenTaskList = $input->getOption('task'); |
116 | 116 | $overwrittenTaskList = is_array($overwrittenTaskList) ? $overwrittenTaskList : []; |
117 | - $overwrittenTaskList = array_filter($overwrittenTaskList, fn ($value) => MathUtility::canBeInterpretedAsInteger($value)); |
|
117 | + $overwrittenTaskList = array_filter($overwrittenTaskList, fn($value) => MathUtility::canBeInterpretedAsInteger($value)); |
|
118 | 118 | $overwrittenTaskList = array_map('intval', $overwrittenTaskList); |
119 | 119 | if ($overwrittenTaskList !== []) { |
120 | 120 | $this->overwrittenTaskList = $overwrittenTaskList; |