@@ -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 | } |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | $this->view->assign('timeFormat', $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm']); |
| 164 | 164 | $this->view->assign('backendUsers', $this->backendUserRepository->findDemanded($demand)); |
| 165 | 165 | $this->view->assign('backendUserGroups', array_merge([''], $this->backendUserGroupRepository->findAll()->toArray())); |
| 166 | - $this->view->assign('compareUserUidList', array_map(function ($item) { |
|
| 166 | + $this->view->assign('compareUserUidList', array_map(function($item) { |
|
| 167 | 167 | return true; |
| 168 | 168 | }, array_flip((array)$compareUserList))); |
| 169 | 169 | $this->view->assign('currentUserUid', $this->getBackendUserAuthentication()->user['uid']); |
@@ -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']) |
@@ -1344,7 +1344,7 @@ |
||
| 1344 | 1344 | ; |
| 1345 | 1345 | |
| 1346 | 1346 | $defaultLanguageElements = []; |
| 1347 | - array_walk($defaultLanguageElementsByColumn, function (array $columnContent) use (&$defaultLanguageElements) { |
|
| 1347 | + array_walk($defaultLanguageElementsByColumn, function(array $columnContent) use (&$defaultLanguageElements) { |
|
| 1348 | 1348 | $defaultLanguageElements = array_merge($defaultLanguageElements, $columnContent); |
| 1349 | 1349 | }); |
| 1350 | 1350 | |
@@ -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 | |
@@ -244,7 +244,7 @@ |
||
| 244 | 244 | self::usesComposerClassLoading(), |
| 245 | 245 | $isDifferentRootPath ? $projectRootPath : $sitePath, |
| 246 | 246 | $sitePath, |
| 247 | - $isDifferentRootPath ? $projectRootPath . '/var' : $sitePath . '/typo3temp/var', |
|
| 247 | + $isDifferentRootPath ? $projectRootPath . '/var' : $sitePath . '/typo3temp/var', |
|
| 248 | 248 | $isDifferentRootPath ? $projectRootPath . '/config' : $sitePath . '/typo3conf', |
| 249 | 249 | PATH_thisScript, |
| 250 | 250 | self::getTypo3Os() === 'WIN' ? 'WINDOWS' : 'UNIX' |
@@ -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); |