@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | { |
195 | 195 | return array_filter( |
196 | 196 | $record, |
197 | - function (string $propertyName): bool { |
|
197 | + function(string $propertyName): bool { |
|
198 | 198 | return $propertyName[0] !== '_'; |
199 | 199 | }, |
200 | 200 | ARRAY_FILTER_USE_KEY |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | { |
212 | 212 | return array_filter( |
213 | 213 | $propertyNames, |
214 | - function (string $propertyName): bool { |
|
214 | + function(string $propertyName): bool { |
|
215 | 215 | return $propertyName[0] !== '_'; |
216 | 216 | } |
217 | 217 | ); |
@@ -1480,7 +1480,7 @@ |
||
1480 | 1480 | } |
1481 | 1481 | |
1482 | 1482 | $tagAttributes = array_map( |
1483 | - function ($attributeValue) { |
|
1483 | + function($attributeValue) { |
|
1484 | 1484 | if (is_array($attributeValue)) { |
1485 | 1485 | return implode(' ', $attributeValue); |
1486 | 1486 | } |
@@ -1211,7 +1211,7 @@ |
||
1211 | 1211 | ) { |
1212 | 1212 | if (!$hideRestrictedCols) { |
1213 | 1213 | $grid .= $this->tt_content_drawColHeader($this->getLanguageService()->sL($columnConfig['name']) . |
1214 | - ' (' . $this->getLanguageService()->getLL('noAccess') . ')'); |
|
1214 | + ' (' . $this->getLanguageService()->getLL('noAccess') . ')'); |
|
1215 | 1215 | } |
1216 | 1216 | } elseif (isset($columnConfig['name']) && $columnConfig['name'] !== '') { |
1217 | 1217 | $grid .= $this->tt_content_drawColHeader($this->getLanguageService()->sL($columnConfig['name']) |
@@ -1336,7 +1336,7 @@ |
||
1336 | 1336 | ); |
1337 | 1337 | |
1338 | 1338 | $defaultLanguageElements = []; |
1339 | - array_walk($defaultLanguageElementsByColumn, function (array $columnContent) use (&$defaultLanguageElements) { |
|
1339 | + array_walk($defaultLanguageElementsByColumn, function(array $columnContent) use (&$defaultLanguageElements) { |
|
1340 | 1340 | $defaultLanguageElements = array_merge($defaultLanguageElements, $columnContent); |
1341 | 1341 | }); |
1342 | 1342 |
@@ -185,13 +185,13 @@ |
||
185 | 185 | } else { |
186 | 186 | $this->checkOpt[$prefix][$linkType] = '0'; |
187 | 187 | } |
188 | - $this->pObj->MOD_SETTINGS[$prefix . '_' . $linkType] = $this->checkOpt[$prefix][$linkType]; |
|
188 | + $this->pObj->MOD_SETTINGS[$prefix . '_' . $linkType] = $this->checkOpt[$prefix][$linkType]; |
|
189 | 189 | } elseif (isset($this->pObj->MOD_SETTINGS[$prefix . '_' . $linkType])) { |
190 | 190 | $this->checkOpt[$prefix][$linkType] = $this->pObj->MOD_SETTINGS[$prefix . '_' . $linkType]; |
191 | 191 | } else { |
192 | 192 | // use default |
193 | 193 | $this->checkOpt[$prefix][$linkType] = '0'; |
194 | - $this->pObj->MOD_SETTINGS[$prefix . '_' . $linkType] = $this->checkOpt[$prefix][$linkType]; |
|
194 | + $this->pObj->MOD_SETTINGS[$prefix . '_' . $linkType] = $this->checkOpt[$prefix][$linkType]; |
|
195 | 195 | } |
196 | 196 | if (isset($this->pObj->MOD_SETTINGS[$other . '_' . $linkType])) { |
197 | 197 | $this->checkOpt[$other][$linkType] = $this->pObj->MOD_SETTINGS[$other . '_' . $linkType]; |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | // Define a lambda function to be applied to all members of this array dimension |
107 | 107 | // Call recursive if current value is of type array |
108 | 108 | // Write to $resultArray (by reference!) if types and value match |
109 | - $callback = function (&$value, $key) use ($needle, &$resultArray) { |
|
109 | + $callback = function(&$value, $key) use ($needle, &$resultArray) { |
|
110 | 110 | if ($value === $needle) { |
111 | 111 | $resultArray[$key] = $value; |
112 | 112 | } elseif (is_array($value)) { |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | if (empty($arrays)) { |
372 | 372 | return $arrays; |
373 | 373 | } |
374 | - $sortResult = uasort($arrays, function (array $a, array $b) use ($key, $ascending) { |
|
374 | + $sortResult = uasort($arrays, function(array $a, array $b) use ($key, $ascending) { |
|
375 | 375 | if (!isset($a[$key]) || !isset($b[$key])) { |
376 | 376 | throw new \RuntimeException('The specified sorting key "' . $key . '" is not available in the given array.', 1373727309); |
377 | 377 | } |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | */ |
848 | 848 | public static function filterRecursive(array $array, callable $callback = null): array |
849 | 849 | { |
850 | - $callback = $callback ?: function ($value) { |
|
850 | + $callback = $callback ?: function($value) { |
|
851 | 851 | return (bool)$value; |
852 | 852 | }; |
853 | 853 |
@@ -162,11 +162,11 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | switch ($id) { |
165 | - case \TYPO3\CMS\Frontend\Http\Application::class: |
|
166 | - case \TYPO3\CMS\Backend\Http\Application::class: |
|
167 | - case \TYPO3\CMS\Install\Http\Application::class: |
|
168 | - case \TYPO3\CMS\Core\Console\CommandApplication::class: |
|
169 | - return true; |
|
165 | + case \TYPO3\CMS\Frontend\Http\Application::class: |
|
166 | + case \TYPO3\CMS\Backend\Http\Application::class: |
|
167 | + case \TYPO3\CMS\Install\Http\Application::class: |
|
168 | + case \TYPO3\CMS\Core\Console\CommandApplication::class: |
|
169 | + return true; |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | return false; |
@@ -188,23 +188,23 @@ discard block |
||
188 | 188 | } |
189 | 189 | |
190 | 190 | switch ($id) { |
191 | - case \TYPO3\CMS\Frontend\Http\Application::class: |
|
192 | - case \TYPO3\CMS\Backend\Http\Application::class: |
|
193 | - $entry = new $id($this->get(ConfigurationManager::class)); |
|
194 | - break; |
|
195 | - case \TYPO3\CMS\Install\Http\Application::class: |
|
196 | - $entry = new $id( |
|
197 | - GeneralUtility::makeInstance(\TYPO3\CMS\Install\Http\RequestHandler::class, $this->get(ConfigurationManager::class)), |
|
198 | - GeneralUtility::makeInstance(\TYPO3\CMS\Install\Http\InstallerRequestHandler::class) |
|
199 | - ); |
|
200 | - break; |
|
201 | - case \TYPO3\CMS\Core\Console\CommandApplication::class: |
|
202 | - $entry = new $id; |
|
203 | - break; |
|
204 | - default: |
|
205 | - throw new class($id . ' not found', 1518638338) extends \Exception implements NotFoundExceptionInterface { |
|
206 | - }; |
|
207 | - break; |
|
191 | + case \TYPO3\CMS\Frontend\Http\Application::class: |
|
192 | + case \TYPO3\CMS\Backend\Http\Application::class: |
|
193 | + $entry = new $id($this->get(ConfigurationManager::class)); |
|
194 | + break; |
|
195 | + case \TYPO3\CMS\Install\Http\Application::class: |
|
196 | + $entry = new $id( |
|
197 | + GeneralUtility::makeInstance(\TYPO3\CMS\Install\Http\RequestHandler::class, $this->get(ConfigurationManager::class)), |
|
198 | + GeneralUtility::makeInstance(\TYPO3\CMS\Install\Http\InstallerRequestHandler::class) |
|
199 | + ); |
|
200 | + break; |
|
201 | + case \TYPO3\CMS\Core\Console\CommandApplication::class: |
|
202 | + $entry = new $id; |
|
203 | + break; |
|
204 | + default: |
|
205 | + throw new class($id . ' not found', 1518638338) extends \Exception implements NotFoundExceptionInterface { |
|
206 | + }; |
|
207 | + break; |
|
208 | 208 | } |
209 | 209 | |
210 | 210 | $this->entries[$id] = $entry; |
@@ -1415,7 +1415,7 @@ |
||
1415 | 1415 | 'jquery/autocomplete' => $corePath . 'jquery.autocomplete', |
1416 | 1416 | 'd3' => $corePath . 'd3/d3' |
1417 | 1417 | ]; |
1418 | - $requireJsConfig['waitSeconds'] = 30; |
|
1418 | + $requireJsConfig['waitSeconds'] = 30; |
|
1419 | 1419 | foreach ($loadedExtensions as $packageName) { |
1420 | 1420 | $fullJsPath = 'EXT:' . $packageName . '/Resources/Public/JavaScript/'; |
1421 | 1421 | $fullJsPath = GeneralUtility::getFileAbsFileName($fullJsPath); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | 'TABLECFG' => 'Using $TABLECFG of class TableController from the outside is discouraged, as this variable is only used for internal storage.', |
54 | 54 | 'tableParsing_quote' => 'Using $tableParsing_quote of class TableController from the outside is discouraged, as this variable is only used for internal storage.', |
55 | 55 | 'tableParsing_delimiter' => 'Using $tableParsing_delimiter of class TableController from the outside is discouraged, as this variable is only used for internal storage.', |
56 | - ]; |
|
56 | + ]; |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * Content accumulation for the module. |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\Controller\Wizard; |
4 | 4 | |
5 | 5 | /* |
@@ -81,7 +81,7 @@ |
||
81 | 81 | $attributes[] = GeneralUtility::implodeAttributes($options['additionalAttributes'], true, true); |
82 | 82 | } |
83 | 83 | if (isset($options['data']) && is_array($options['data'])) { |
84 | - array_walk($options['data'], function (&$value, $key) { |
|
84 | + array_walk($options['data'], function(&$value, $key) { |
|
85 | 85 | $value = 'data-' . htmlspecialchars($key) . '="' . htmlspecialchars($value) . '"'; |
86 | 86 | }); |
87 | 87 | $attributes[] = implode(' ', $options['data']); |