@@ -78,16 +78,16 @@ discard block |
||
| 78 | 78 | { |
| 79 | 79 | switch ($name) { |
| 80 | 80 | // Ensure the default aspects are available, this is mostly necessary for tests to not set up everything |
| 81 | - case 'date': |
|
| 82 | - case 'visibility': |
|
| 83 | - case 'backend.user': |
|
| 84 | - case 'frontend.user': |
|
| 85 | - case 'workspace': |
|
| 86 | - case 'language': |
|
| 87 | - case 'typoscript': |
|
| 88 | - return true; |
|
| 89 | - default: |
|
| 90 | - return isset($this->aspects[$name]); |
|
| 81 | + case 'date': |
|
| 82 | + case 'visibility': |
|
| 83 | + case 'backend.user': |
|
| 84 | + case 'frontend.user': |
|
| 85 | + case 'workspace': |
|
| 86 | + case 'language': |
|
| 87 | + case 'typoscript': |
|
| 88 | + return true; |
|
| 89 | + default: |
|
| 90 | + return isset($this->aspects[$name]); |
|
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | |
@@ -103,29 +103,29 @@ discard block |
||
| 103 | 103 | if (!isset($this->aspects[$name])) { |
| 104 | 104 | // Ensure the default aspects are available, this is mostly necessary for tests to not set up everything |
| 105 | 105 | switch ($name) { |
| 106 | - case 'date': |
|
| 107 | - $this->setAspect('date', new DateTimeAspect(new \DateTimeImmutable('@' . $GLOBALS['EXEC_TIME']))); |
|
| 108 | - break; |
|
| 109 | - case 'visibility': |
|
| 110 | - $this->setAspect('visibility', new VisibilityAspect()); |
|
| 111 | - break; |
|
| 112 | - case 'backend.user': |
|
| 113 | - $this->setAspect('backend.user', new UserAspect()); |
|
| 114 | - break; |
|
| 115 | - case 'frontend.user': |
|
| 116 | - $this->setAspect('frontend.user', new UserAspect()); |
|
| 117 | - break; |
|
| 118 | - case 'workspace': |
|
| 119 | - $this->setAspect('workspace', new WorkspaceAspect()); |
|
| 120 | - break; |
|
| 121 | - case 'language': |
|
| 122 | - $this->setAspect('language', new LanguageAspect()); |
|
| 123 | - break; |
|
| 124 | - case 'typoscript': |
|
| 125 | - $this->setAspect('typoscript', new TypoScriptAspect()); |
|
| 126 | - break; |
|
| 127 | - default: |
|
| 128 | - throw new AspectNotFoundException('No aspect named "' . $name . '" found.', 1527777641); |
|
| 106 | + case 'date': |
|
| 107 | + $this->setAspect('date', new DateTimeAspect(new \DateTimeImmutable('@' . $GLOBALS['EXEC_TIME']))); |
|
| 108 | + break; |
|
| 109 | + case 'visibility': |
|
| 110 | + $this->setAspect('visibility', new VisibilityAspect()); |
|
| 111 | + break; |
|
| 112 | + case 'backend.user': |
|
| 113 | + $this->setAspect('backend.user', new UserAspect()); |
|
| 114 | + break; |
|
| 115 | + case 'frontend.user': |
|
| 116 | + $this->setAspect('frontend.user', new UserAspect()); |
|
| 117 | + break; |
|
| 118 | + case 'workspace': |
|
| 119 | + $this->setAspect('workspace', new WorkspaceAspect()); |
|
| 120 | + break; |
|
| 121 | + case 'language': |
|
| 122 | + $this->setAspect('language', new LanguageAspect()); |
|
| 123 | + break; |
|
| 124 | + case 'typoscript': |
|
| 125 | + $this->setAspect('typoscript', new TypoScriptAspect()); |
|
| 126 | + break; |
|
| 127 | + default: |
|
| 128 | + throw new AspectNotFoundException('No aspect named "' . $name . '" found.', 1527777641); |
|
| 129 | 129 | } |
| 130 | 130 | } |
| 131 | 131 | return $this->aspects[$name]; |
@@ -259,7 +259,7 @@ |
||
| 259 | 259 | $editableComments[$const]['subcat_name'] = $catSplit[1]; |
| 260 | 260 | $orderIdentifier = isset($catSplit[2]) ? trim($catSplit[2]) : $counter; |
| 261 | 261 | $editableComments[$const]['subcat'] = $this->subCategories[$catSplit[1]][1] |
| 262 | - . '/' . $catSplit[1] . '/' . $orderIdentifier . 'z'; |
|
| 262 | + . '/' . $catSplit[1] . '/' . $orderIdentifier . 'z'; |
|
| 263 | 263 | } elseif (isset($catSplit[2])) { |
| 264 | 264 | $editableComments[$const]['subcat'] = 'x/' . trim($catSplit[2]) . 'z'; |
| 265 | 265 | } else { |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | // Sort configurations of each subcategory |
| 77 | 77 | foreach ($hierarchicConfiguration as &$catConfigurationArray) { |
| 78 | 78 | foreach ($catConfigurationArray as &$subcatConfigurationArray) { |
| 79 | - uasort($subcatConfigurationArray, function ($a, $b) { |
|
| 79 | + uasort($subcatConfigurationArray, function($a, $b) { |
|
| 80 | 80 | return strnatcmp($a['subcat'], $b['subcat']); |
| 81 | 81 | }); |
| 82 | 82 | } |
@@ -334,7 +334,7 @@ |
||
| 334 | 334 | } |
| 335 | 335 | } |
| 336 | 336 | } |
| 337 | - usort($historyDataForRecord, static function (array $a, array $b): int { |
|
| 337 | + usort($historyDataForRecord, static function(array $a, array $b): int { |
|
| 338 | 338 | if ($a['tstamp'] < $b['tstamp']) { |
| 339 | 339 | return 1; |
| 340 | 340 | } |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | { |
| 166 | 166 | uasort( |
| 167 | 167 | $itemList, |
| 168 | - function (FileReference $a, FileReference $b) { |
|
| 168 | + function(FileReference $a, FileReference $b) { |
|
| 169 | 169 | $sortA = (int)$a->getReferenceProperty('sorting_foreign'); |
| 170 | 170 | $sortB = (int)$b->getReferenceProperty('sorting_foreign'); |
| 171 | 171 | |
@@ -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 | $scriptPath, |
| 250 | 250 | self::isRunningOnWindows() ? 'WINDOWS' : 'UNIX' |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $resourceFactory = GeneralUtility::makeInstance(ResourceFactory::class); |
| 54 | 54 | try { |
| 55 | 55 | $file = $resourceFactory->retrieveFileOrFolderObject($url); |
| 56 | - } catch (FileDoesNotExistException|FolderDoesNotExistException $e) { |
|
| 56 | + } catch (FileDoesNotExistException | FolderDoesNotExistException $e) { |
|
| 57 | 57 | return false; |
| 58 | 58 | } |
| 59 | 59 | |
@@ -2160,7 +2160,7 @@ discard block |
||
| 2160 | 2160 | ); |
| 2161 | 2161 | |
| 2162 | 2162 | $dataStructureArray = $flexFormTools->parseDataStructureByIdentifier($dataStructureIdentifier); |
| 2163 | - } catch (InvalidParentRowException|InvalidParentRowLoopException|InvalidParentRowRootException|InvalidPointerFieldValueException|InvalidIdentifierException $e) { |
|
| 2163 | + } catch (InvalidParentRowException | InvalidParentRowLoopException | InvalidParentRowRootException | InvalidPointerFieldValueException | InvalidIdentifierException $e) { |
|
| 2164 | 2164 | } |
| 2165 | 2165 | |
| 2166 | 2166 | // Get current value array: |
@@ -2271,7 +2271,7 @@ discard block |
||
| 2271 | 2271 | */ |
| 2272 | 2272 | public function checkValue_inline($res, $value, $tcaFieldConf, $PP, $field, array $additionalData = null) |
| 2273 | 2273 | { |
| 2274 | - [$table, $id, , $status] = $PP; |
|
| 2274 | + [$table, $id,, $status] = $PP; |
|
| 2275 | 2275 | $this->checkValueForInline($res, $value, $tcaFieldConf, $table, $id, $status, $field, $additionalData); |
| 2276 | 2276 | } |
| 2277 | 2277 | |
@@ -1018,7 +1018,7 @@ |
||
| 1018 | 1018 | $this->writeLog(SystemLogFileAction::EDIT, SystemLogErrorClassification::USER_ERROR, 100, 'File "%s" was not saved! Write-permission problem?', [$fileObject->getIdentifier()]); |
| 1019 | 1019 | $this->addMessageToFlashMessageQueue('FileUtility.FileWasNotSaved', [$fileObject->getIdentifier()]); |
| 1020 | 1020 | return false; |
| 1021 | - } catch (IllegalFileExtensionException|\RuntimeException $e) { |
|
| 1021 | + } catch (IllegalFileExtensionException | \RuntimeException $e) { |
|
| 1022 | 1022 | $this->writeLog(SystemLogFileAction::EDIT, SystemLogErrorClassification::USER_ERROR, 100, 'File "%s" was not saved! File extension rejected!', [$fileObject->getIdentifier()]); |
| 1023 | 1023 | $this->addMessageToFlashMessageQueue('FileUtility.FileWasNotSaved', [$fileObject->getIdentifier()]); |
| 1024 | 1024 | return false; |
@@ -1208,7 +1208,7 @@ |
||
| 1208 | 1208 | public function remapListedDBRecords_flexFormCallBack($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2, $path) |
| 1209 | 1209 | { |
| 1210 | 1210 | // Extract parameters: |
| 1211 | - [, , , $config] = $pParams; |
|
| 1211 | + [,,, $config] = $pParams; |
|
| 1212 | 1212 | // In case the $path is used as index without a trailing slash we will remove that |
| 1213 | 1213 | if (!is_array($config['flexFormRels']['db'][$path]) && is_array($config['flexFormRels']['db'][rtrim($path, '/')])) { |
| 1214 | 1214 | $path = rtrim($path, '/'); |