@@ -360,7 +360,7 @@ |
||
360 | 360 | |
361 | 361 | protected function extensionsWithUpdate(array $availableAndInstalledExtensions): array |
362 | 362 | { |
363 | - return array_filter($availableAndInstalledExtensions, static function ($extension) { |
|
363 | + return array_filter($availableAndInstalledExtensions, static function($extension) { |
|
364 | 364 | return $extension['updateAvailable'] ?? false; |
365 | 365 | }); |
366 | 366 | } |
@@ -166,7 +166,7 @@ |
||
166 | 166 | protected function resetConstraintsOnMemoryExhaustionError() |
167 | 167 | { |
168 | 168 | $reservedMemory = new \SplFixedArray(187500); // 3M |
169 | - register_shutdown_function(function () use (&$reservedMemory): void { |
|
169 | + register_shutdown_function(function() use (&$reservedMemory): void { |
|
170 | 170 | $reservedMemory = null; // free the reserved memory |
171 | 171 | $error = error_get_last(); |
172 | 172 | if (strpos($error['message'] ?? '', 'Allowed memory size of') !== false) { |
@@ -136,14 +136,14 @@ discard block |
||
136 | 136 | { |
137 | 137 | $configuration = $this->getConfigurationForLogger(self::CONFIGURATION_TYPE_WRITER, $logger->getName()); |
138 | 138 | foreach ($configuration as $severityLevel => $writer) { |
139 | - $writer = array_filter($writer, static fn (array $options) => !($options['disabled'] ?? false)); |
|
139 | + $writer = array_filter($writer, static fn(array $options) => !($options['disabled'] ?? false)); |
|
140 | 140 | foreach ($writer as $logWriterClassName => $logWriterOptions) { |
141 | 141 | try { |
142 | 142 | unset($logWriterOptions['disabled']); |
143 | 143 | /** @var \TYPO3\CMS\Core\Log\Writer\WriterInterface $logWriter */ |
144 | 144 | $logWriter = GeneralUtility::makeInstance($logWriterClassName, $logWriterOptions); |
145 | 145 | $logger->addWriter($severityLevel, $logWriter); |
146 | - } catch (InvalidArgumentException|InvalidLogWriterConfigurationException $e) { |
|
146 | + } catch (InvalidArgumentException | InvalidLogWriterConfigurationException $e) { |
|
147 | 147 | $logger->warning('Instantiation of LogWriter "{class_name}" failed for logger {name}', [ |
148 | 148 | 'class_name' => $logWriterClassName, |
149 | 149 | 'name' => $logger->getName(), |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | /** @var \TYPO3\CMS\Core\Log\Processor\ProcessorInterface $logProcessor */ |
169 | 169 | $logProcessor = GeneralUtility::makeInstance($logProcessorClassName, $logProcessorOptions); |
170 | 170 | $logger->addProcessor($severityLevel, $logProcessor); |
171 | - } catch (InvalidArgumentException|InvalidLogProcessorConfigurationException $e) { |
|
171 | + } catch (InvalidArgumentException | InvalidLogProcessorConfigurationException $e) { |
|
172 | 172 | $logger->warning('Instantiation of LogProcessor "{class_name}" failed for logger {name}', [ |
173 | 173 | 'class_name' => $logProcessorClassName, |
174 | 174 | 'name' => $logger->getName(), |
@@ -113,6 +113,6 @@ |
||
113 | 113 | public static function atLeast($level): array |
114 | 114 | { |
115 | 115 | $level = self::normalizeLevel($level); |
116 | - return array_filter(self::$levels, static fn ($intLevel) => $intLevel <= $level, ARRAY_FILTER_USE_KEY); |
|
116 | + return array_filter(self::$levels, static fn($intLevel) => $intLevel <= $level, ARRAY_FILTER_USE_KEY); |
|
117 | 117 | } |
118 | 118 | } |
@@ -35,8 +35,8 @@ |
||
35 | 35 | public function getFactories(): array |
36 | 36 | { |
37 | 37 | return [ |
38 | - Core\Rendering\RenderingContextFactory::class => [ static::class, 'getRenderingContextFactory' ], |
|
39 | - Core\ViewHelper\ViewHelperResolverFactory::class => [ static::class, 'getViewHelperResolverFactory' ], |
|
38 | + Core\Rendering\RenderingContextFactory::class => [static::class, 'getRenderingContextFactory'], |
|
39 | + Core\ViewHelper\ViewHelperResolverFactory::class => [static::class, 'getViewHelperResolverFactory'], |
|
40 | 40 | ]; |
41 | 41 | } |
42 | 42 |
@@ -92,7 +92,7 @@ |
||
92 | 92 | } |
93 | 93 | |
94 | 94 | // Remove any item that is not an array (means, the stored uid is not available anymore) |
95 | - $mostRecentUsers = array_filter($mostRecentUsers, static function ($record) { |
|
95 | + $mostRecentUsers = array_filter($mostRecentUsers, static function($record) { |
|
96 | 96 | return is_array($record); |
97 | 97 | }); |
98 | 98 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | 'message' => htmlspecialchars( |
63 | 63 | $this->getLanguageService()->sL('LLL:EXT:recordlist/Resources/Private/Language/locallang.xlf:updateColumnView.nothingUpdated') |
64 | 64 | ) |
65 | - ]); |
|
65 | + ]); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $backendUser = $this->getBackendUserAuthentication(); |
@@ -165,7 +165,7 @@ |
||
165 | 165 | } |
166 | 166 | |
167 | 167 | // Sort standard columns by their resolved label |
168 | - usort($columns, static fn ($a, $b) => $a['label'] <=> $b['label']); |
|
168 | + usort($columns, static fn($a, $b) => $a['label'] <=> $b['label']); |
|
169 | 169 | |
170 | 170 | // Disabled columns go first, followed by standard columns |
171 | 171 | // and special columns, which do not have a label. |
@@ -1079,7 +1079,7 @@ discard block |
||
1079 | 1079 | } |
1080 | 1080 | |
1081 | 1081 | $tagAttributes = array_map( |
1082 | - function ($attributeValue) { |
|
1082 | + function($attributeValue) { |
|
1083 | 1083 | if (is_array($attributeValue)) { |
1084 | 1084 | return implode(' ', $attributeValue); |
1085 | 1085 | } |
@@ -1374,7 +1374,7 @@ discard block |
||
1374 | 1374 | 'currentUrl' => $this->listURL('', $table, 'pointer'), |
1375 | 1375 | 'currentPage' => $currentPage, |
1376 | 1376 | 'totalPages' => $totalPages, |
1377 | - 'firstElement' => ((($currentPage -1) * $itemsPerPage) + 1), |
|
1377 | + 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), |
|
1378 | 1378 | 'lastElement' => $lastElementNumber, |
1379 | 1379 | 'colspan' => $paginationColumns |
1380 | 1380 | ]) |
@@ -1549,7 +1549,7 @@ discard block |
||
1549 | 1549 | $params = [ |
1550 | 1550 | 'edit' => [ |
1551 | 1551 | $table => [ |
1552 | - (0-(($row['_MOVE_PLH'] ?? 0) ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
1552 | + (0 - (($row['_MOVE_PLH'] ?? 0) ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
1553 | 1553 | ] |
1554 | 1554 | ], |
1555 | 1555 | 'returnUrl' => $this->listURL() |
@@ -1961,8 +1961,8 @@ discard block |
||
1961 | 1961 | $possibleTranslations = $this->possibleTranslations; |
1962 | 1962 | if ($table === 'pages') { |
1963 | 1963 | // Calculate possible translations for pages |
1964 | - $possibleTranslations = array_map(static fn ($siteLanguage) => $siteLanguage->getLanguageId(), $this->languagesAllowedForUser); |
|
1965 | - $possibleTranslations = array_filter($possibleTranslations, static fn ($languageUid) => $languageUid > 0); |
|
1964 | + $possibleTranslations = array_map(static fn($siteLanguage) => $siteLanguage->getLanguageId(), $this->languagesAllowedForUser); |
|
1965 | + $possibleTranslations = array_filter($possibleTranslations, static fn($languageUid) => $languageUid > 0); |
|
1966 | 1966 | } |
1967 | 1967 | |
1968 | 1968 | // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration: |
@@ -201,7 +201,7 @@ |
||
201 | 201 | throw new \Exception('Files with that extension are not editable. Allowed extensions are: ' . $extList, 1476050135); |
202 | 202 | } |
203 | 203 | |
204 | - $fullIdentifier= $this->fileObject->getCombinedIdentifier(); |
|
204 | + $fullIdentifier = $this->fileObject->getCombinedIdentifier(); |
|
205 | 205 | $returnUrl = (string)$this->uriBuilder->buildUriFromRoute('file_edit', ['target' => $fullIdentifier]); |
206 | 206 | |
207 | 207 | // Making the formfields |