@@ -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, '/'); |
@@ -56,11 +56,11 @@ discard block |
||
56 | 56 | ], |
57 | 57 | 'otherLanguageContent' => [ |
58 | 58 | 'renderType' => 'otherLanguageContent', |
59 | - 'after' => [ 'localizationStateSelector' ], |
|
59 | + 'after' => ['localizationStateSelector'], |
|
60 | 60 | ], |
61 | 61 | 'defaultLanguageDifferences' => [ |
62 | 62 | 'renderType' => 'defaultLanguageDifferences', |
63 | - 'after' => [ 'otherLanguageContent' ], |
|
63 | + 'after' => ['otherLanguageContent'], |
|
64 | 64 | ], |
65 | 65 | ]; |
66 | 66 | |
@@ -216,36 +216,36 @@ discard block |
||
216 | 216 | $html = []; |
217 | 217 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
218 | 218 | $html[] = $fieldInformationHtml; |
219 | - $html[] = '<div class="form-control-wrap">'; |
|
220 | - $html[] = '<div class="form-wizards-wrap">'; |
|
221 | - $html[] = '<div class="form-wizards-element">'; |
|
219 | + $html[] = '<div class="form-control-wrap">'; |
|
220 | + $html[] = '<div class="form-wizards-wrap">'; |
|
221 | + $html[] = '<div class="form-wizards-element">'; |
|
222 | 222 | if ($hasIcons) { |
223 | - $html[] = '<div class="input-group">'; |
|
224 | - $html[] = '<span class="input-group-addon input-group-icon">'; |
|
225 | - $html[] = $selectedIcon; |
|
226 | - $html[] = '</span>'; |
|
223 | + $html[] = '<div class="input-group">'; |
|
224 | + $html[] = '<span class="input-group-addon input-group-icon">'; |
|
225 | + $html[] = $selectedIcon; |
|
226 | + $html[] = '</span>'; |
|
227 | 227 | } |
228 | - $html[] = '<select ' . GeneralUtility::implodeAttributes($selectAttributes, true) . '>'; |
|
229 | - $html[] = $options; |
|
230 | - $html[] = '</select>'; |
|
228 | + $html[] = '<select ' . GeneralUtility::implodeAttributes($selectAttributes, true) . '>'; |
|
229 | + $html[] = $options; |
|
230 | + $html[] = '</select>'; |
|
231 | 231 | if ($hasIcons) { |
232 | - $html[] = '</div>'; |
|
232 | + $html[] = '</div>'; |
|
233 | 233 | } |
234 | - $html[] = '</div>'; |
|
234 | + $html[] = '</div>'; |
|
235 | 235 | if (!$disabled && !empty($fieldControlHtml)) { |
236 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
237 | - $html[] = '<div class="btn-group">'; |
|
238 | - $html[] = $fieldControlHtml; |
|
239 | - $html[] = '</div>'; |
|
240 | - $html[] = '</div>'; |
|
236 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
237 | + $html[] = '<div class="btn-group">'; |
|
238 | + $html[] = $fieldControlHtml; |
|
239 | + $html[] = '</div>'; |
|
240 | + $html[] = '</div>'; |
|
241 | 241 | } |
242 | 242 | if (!$disabled && !empty($fieldWizardHtml)) { |
243 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
244 | - $html[] = $fieldWizardHtml; |
|
245 | - $html[] = '</div>'; |
|
243 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
244 | + $html[] = $fieldWizardHtml; |
|
245 | + $html[] = '</div>'; |
|
246 | 246 | } |
247 | - $html[] = '</div>'; |
|
248 | - $html[] = '</div>'; |
|
247 | + $html[] = '</div>'; |
|
248 | + $html[] = '</div>'; |
|
249 | 249 | $html[] = '</div>'; |
250 | 250 | |
251 | 251 | $resultArray['requireJsModules'][] = ['TYPO3/CMS/Backend/FormEngine/Element/SelectSingleElement' => implode(LF, [ |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | $theData[$v] = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels._REF_')); |
338 | 338 | } else { |
339 | 339 | // Normal row |
340 | - $theData[$v] = $this->linkWrapSort($this->folderObject->getCombinedIdentifier(), $v); |
|
340 | + $theData[$v] = $this->linkWrapSort($this->folderObject->getCombinedIdentifier(), $v); |
|
341 | 341 | } |
342 | 342 | } |
343 | 343 | |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | { |
687 | 687 | // first two keys are "0" (default) and "-1" (multiple), after that comes the "other languages" |
688 | 688 | $allSystemLanguages = $this->translateTools->getSystemLanguages(); |
689 | - return array_filter($allSystemLanguages, function ($languageRecord) { |
|
689 | + return array_filter($allSystemLanguages, function($languageRecord) { |
|
690 | 690 | if ($languageRecord['uid'] === -1 || $languageRecord['uid'] === 0 || !$this->getBackendUser()->checkLanguageAccess($languageRecord['uid'])) { |
691 | 691 | return false; |
692 | 692 | } |
@@ -159,7 +159,7 @@ |
||
159 | 159 | $importedContent = $this->loadAndParse($import['resource'], $fileName); |
160 | 160 | // override the imported content with the one from the current file |
161 | 161 | $content = ArrayUtility::replaceAndAppendScalarValuesRecursive($importedContent, $content); |
162 | - } catch (ParseException|YamlParseException|YamlFileLoadingException $exception) { |
|
162 | + } catch (ParseException | YamlParseException | YamlFileLoadingException $exception) { |
|
163 | 163 | $this->logger->error($exception->getMessage(), ['exception' => $exception]); |
164 | 164 | } |
165 | 165 | } |
@@ -370,7 +370,7 @@ |
||
370 | 370 | TYPO3.ModuleMenu.App.showModule(modName, addGetVars); |
371 | 371 | } |
372 | 372 | ' . $this->setStartupModule($request) |
373 | - . $this->handlePageEditing($request), |
|
373 | + . $this->handlePageEditing($request), |
|
374 | 374 | false |
375 | 375 | ); |
376 | 376 | } |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $result['databaseRow'] |
83 | 83 | ); |
84 | 84 | $dataStructureArray = $flexFormTools->parseDataStructureByIdentifier($dataStructureIdentifier); |
85 | - } catch (InvalidParentRowException|InvalidParentRowLoopException|InvalidParentRowRootException|InvalidPointerFieldValueException|InvalidIdentifierException $e) { |
|
85 | + } catch (InvalidParentRowException | InvalidParentRowLoopException | InvalidParentRowRootException | InvalidPointerFieldValueException | InvalidIdentifierException $e) { |
|
86 | 86 | $dataStructureIdentifier = null; |
87 | 87 | } finally { |
88 | 88 | // Add the identifier to TCA to use it later during rendering |
@@ -130,7 +130,7 @@ |
||
130 | 130 | } |
131 | 131 | } else { |
132 | 132 | // This is when the public path is a subfolder (e.g. public/ or web/) |
133 | - $publicPath = substr(Environment::getPublicPath(), strlen(Environment::getProjectPath())+1); |
|
133 | + $publicPath = substr(Environment::getPublicPath(), strlen(Environment::getProjectPath()) + 1); |
|
134 | 134 | |
135 | 135 | $publicPathSubStructure = [ |
136 | 136 | [ |
@@ -35,7 +35,7 @@ |
||
35 | 35 | 'active' => extension_loaded('Zend OPcache') && ini_get('opcache.enable') === '1', |
36 | 36 | 'version' => phpversion('Zend OPcache'), |
37 | 37 | 'warning' => self::isClearable() ? false : 'Either opcache_invalidate or opcache_reset are disabled in this installation. Clearing will not work.', |
38 | - 'clearCallback' => static function ($fileAbsPath) { |
|
38 | + 'clearCallback' => static function($fileAbsPath) { |
|
39 | 39 | if (self::isClearable()) { |
40 | 40 | if ($fileAbsPath !== null) { |
41 | 41 | opcache_invalidate($fileAbsPath); |