@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $this->redirect('unresolvedDependencies', 'List', null, ['extensionKey' => $extensionKey]); |
| 111 | 111 | } |
| 112 | 112 | } |
| 113 | - } catch (ExtensionManagerException|PackageStatesFileNotWritableException $e) { |
|
| 113 | + } catch (ExtensionManagerException | PackageStatesFileNotWritableException $e) { |
|
| 114 | 114 | $this->addFlashMessage($e->getMessage(), '', FlashMessage::ERROR); |
| 115 | 115 | } |
| 116 | 116 | $this->redirect('index', 'List', null, [ |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | ] |
| 157 | 157 | ) ?? '' |
| 158 | 158 | ); |
| 159 | - } catch (ExtensionManagerException|Exception $e) { |
|
| 159 | + } catch (ExtensionManagerException | Exception $e) { |
|
| 160 | 160 | $this->addFlashMessage($e->getMessage(), '', FlashMessage::ERROR); |
| 161 | 161 | } |
| 162 | 162 | |
@@ -190,7 +190,7 @@ |
||
| 190 | 190 | { |
| 191 | 191 | $files = scandir(Environment::getPublicPath() . '/'); |
| 192 | 192 | $files = is_array($files) ? $files : []; |
| 193 | - $files = array_filter($files, function ($file) { |
|
| 193 | + $files = array_filter($files, function($file) { |
|
| 194 | 194 | return @is_file(Environment::getPublicPath() . '/' . $file) && preg_match('~^' . self::FIRST_INSTALL_FILE_PATH . '.*~i', $file); |
| 195 | 195 | }); |
| 196 | 196 | return $files; |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | * @internal |
| 178 | 178 | * @var array |
| 179 | 179 | */ |
| 180 | - protected $moduleData = []; |
|
| 180 | + protected $moduleData = []; |
|
| 181 | 181 | |
| 182 | 182 | /** |
| 183 | 183 | * Page id |
@@ -1000,7 +1000,7 @@ discard block |
||
| 1000 | 1000 | if ($totalItems > $itemsLimitPerTable) { |
| 1001 | 1001 | $countOnFirstPage = $totalItems > $itemsLimitSingleTable ? $itemsLimitSingleTable : $totalItems; |
| 1002 | 1002 | $hasMore = $totalItems > $itemsLimitSingleTable; |
| 1003 | - $colspan = (count($this->fieldArray) + 1); |
|
| 1003 | + $colspan = (count($this->fieldArray) + 1); |
|
| 1004 | 1004 | $rowOutput .= '<tr><td colspan="' . $colspan . '"> |
| 1005 | 1005 | <a href="' . htmlspecialchars($this->listURL() . '&table=' . rawurlencode($tableIdentifier)) . '" class="btn btn-default">' |
| 1006 | 1006 | . '<span class="t3-icon fa fa-chevron-down"></span> <i>[1 - ' . $countOnFirstPage . ($hasMore ? '+' : '') . ']</i></a> |
@@ -1263,7 +1263,7 @@ discard block |
||
| 1263 | 1263 | } |
| 1264 | 1264 | |
| 1265 | 1265 | $tagAttributes = array_map( |
| 1266 | - function ($attributeValue) { |
|
| 1266 | + function($attributeValue) { |
|
| 1267 | 1267 | if (is_array($attributeValue)) { |
| 1268 | 1268 | return implode(' ', $attributeValue); |
| 1269 | 1269 | } |
@@ -1841,7 +1841,7 @@ discard block |
||
| 1841 | 1841 | $params = [ |
| 1842 | 1842 | 'edit' => [ |
| 1843 | 1843 | $table => [ |
| 1844 | - (0-($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
| 1844 | + (0 - ($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
| 1845 | 1845 | ] |
| 1846 | 1846 | ], |
| 1847 | 1847 | 'returnUrl' => $this->listURL() |
@@ -2217,8 +2217,8 @@ discard block |
||
| 2217 | 2217 | $possibleTranslations = $this->possibleTranslations; |
| 2218 | 2218 | if ($table === 'pages') { |
| 2219 | 2219 | // Calculate possible translations for pages |
| 2220 | - $possibleTranslations = array_map(static function ($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser); |
|
| 2221 | - $possibleTranslations = array_filter($possibleTranslations, static function ($languageUid) { return $languageUid > 0;}); |
|
| 2220 | + $possibleTranslations = array_map(static function($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser); |
|
| 2221 | + $possibleTranslations = array_filter($possibleTranslations, static function($languageUid) { return $languageUid > 0; }); |
|
| 2222 | 2222 | } |
| 2223 | 2223 | |
| 2224 | 2224 | // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration: |
@@ -2264,7 +2264,7 @@ discard block |
||
| 2264 | 2264 | { |
| 2265 | 2265 | $lang = $this->getLanguageService(); |
| 2266 | 2266 | // Load already selected fields, if any: |
| 2267 | - $setFields = (array)($this->setFields[$table]?? []); |
|
| 2267 | + $setFields = (array)($this->setFields[$table] ?? []); |
|
| 2268 | 2268 | // Request fields from table: |
| 2269 | 2269 | $fields = $this->makeFieldList($table, false, true); |
| 2270 | 2270 | // Add pseudo "control" fields |
@@ -1688,7 +1688,7 @@ |
||
| 1688 | 1688 | if (!$isDeletePlaceHolder) { |
| 1689 | 1689 | $attributes = $this->getPreviewUriBuilder($table, $row)->serializeDispatcherAttributes(); |
| 1690 | 1690 | $viewAction = '<a class="btn btn-default" href="#" ' . $attributes |
| 1691 | - . ' title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.showPage')) . '">'; |
|
| 1691 | + . ' title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.showPage')) . '">'; |
|
| 1692 | 1692 | if ($table === 'pages') { |
| 1693 | 1693 | $viewAction .= $this->iconFactory->getIcon('actions-view-page', Icon::SIZE_SMALL)->render(); |
| 1694 | 1694 | } else { |
@@ -146,15 +146,15 @@ |
||
| 146 | 146 | $processedTitle = str_replace('\\n', '<br />', htmlspecialchars($fakeParameterArray['fieldConf']['label'])); |
| 147 | 147 | $html = []; |
| 148 | 148 | $html[] = '<div class="form-section">'; |
| 149 | - $html[] = '<div class="form-group t3js-formengine-palette-field t3js-formengine-validation-marker">'; |
|
| 150 | - $html[] = '<label class="t3js-formengine-label">'; |
|
| 151 | - $html[] = BackendUtility::wrapInHelp($parameterArray['_cshKey'], $flexFormFieldName, $processedTitle); |
|
| 152 | - $html[] = $showFieldName ? ('<code>[' . htmlspecialchars($flexFormFieldName) . ']</code>') : ''; |
|
| 153 | - $html[] = '</label>'; |
|
| 154 | - $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
|
| 155 | - $html[] = $childResult['html']; |
|
| 156 | - $html[] = '</div>'; |
|
| 157 | - $html[] = '</div>'; |
|
| 149 | + $html[] = '<div class="form-group t3js-formengine-palette-field t3js-formengine-validation-marker">'; |
|
| 150 | + $html[] = '<label class="t3js-formengine-label">'; |
|
| 151 | + $html[] = BackendUtility::wrapInHelp($parameterArray['_cshKey'], $flexFormFieldName, $processedTitle); |
|
| 152 | + $html[] = $showFieldName ? ('<code>[' . htmlspecialchars($flexFormFieldName) . ']</code>') : ''; |
|
| 153 | + $html[] = '</label>'; |
|
| 154 | + $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
|
| 155 | + $html[] = $childResult['html']; |
|
| 156 | + $html[] = '</div>'; |
|
| 157 | + $html[] = '</div>'; |
|
| 158 | 158 | $html[] = '</div>'; |
| 159 | 159 | $resultArray['html'] .= implode(LF, $html); |
| 160 | 160 | $resultArray = $this->mergeChildReturnIntoExistingResult($resultArray, $childResult, false); |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | $perms_clause = $backendUser->getPagePermsClause(Permission::PAGE_SHOW); |
| 110 | 110 | // GPvars: |
| 111 | 111 | $id = (int)($parsedBody['id'] ?? $queryParams['id'] ?? 0); |
| 112 | - $pointer = max(0, (int)($parsedBody['pointer'] ?? $queryParams['pointer'] ?? 0)); |
|
| 112 | + $pointer = max(0, (int)($parsedBody['pointer'] ?? $queryParams['pointer'] ?? 0)); |
|
| 113 | 113 | $table = (string)($parsedBody['table'] ?? $queryParams['table'] ?? ''); |
| 114 | 114 | $search_field = (string)($parsedBody['search_field'] ?? $queryParams['search_field'] ?? ''); |
| 115 | 115 | $search_levels = (int)($parsedBody['search_levels'] ?? $queryParams['search_levels'] ?? 0); |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | ) { |
| 62 | 62 | $this->configuration = $configuration; |
| 63 | 63 | $this->view = $view; |
| 64 | - $this->options = array_merge(['text' => ''], $options); |
|
| 64 | + $this->options = array_merge(['text' => ''], $options); |
|
| 65 | 65 | $this->buttonProvider = $buttonProvider; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -45,20 +45,20 @@ |
||
| 45 | 45 | public function getFactories(): array |
| 46 | 46 | { |
| 47 | 47 | return [ |
| 48 | - 'dashboard.presets' => [ static::class, 'getDashboardPresets' ], |
|
| 49 | - 'dashboard.widgetGroups' => [ static::class, 'getWidgetGroups' ], |
|
| 50 | - 'dashboard.widgets' => [ static::class, 'getWidgets' ], |
|
| 48 | + 'dashboard.presets' => [static::class, 'getDashboardPresets'], |
|
| 49 | + 'dashboard.widgetGroups' => [static::class, 'getWidgetGroups'], |
|
| 50 | + 'dashboard.widgets' => [static::class, 'getWidgets'], |
|
| 51 | 51 | ]; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | public function getExtensions(): array |
| 55 | 55 | { |
| 56 | 56 | return [ |
| 57 | - DashboardPresetRegistry::class => [ static::class, 'configureDashboardPresetRegistry' ], |
|
| 58 | - WidgetGroupRegistry::class => [ static::class, 'configureWidgetGroupRegistry' ], |
|
| 59 | - 'dashboard.presets' => [ static::class, 'configureDashboardPresets' ], |
|
| 60 | - 'dashboard.widgetGroups' => [ static::class, 'configureWidgetGroups' ], |
|
| 61 | - 'dashboard.widgets' => [ static::class, 'configureWidgets' ] |
|
| 57 | + DashboardPresetRegistry::class => [static::class, 'configureDashboardPresetRegistry'], |
|
| 58 | + WidgetGroupRegistry::class => [static::class, 'configureWidgetGroupRegistry'], |
|
| 59 | + 'dashboard.presets' => [static::class, 'configureDashboardPresets'], |
|
| 60 | + 'dashboard.widgetGroups' => [static::class, 'configureWidgetGroups'], |
|
| 61 | + 'dashboard.widgets' => [static::class, 'configureWidgets'] |
|
| 62 | 62 | ] + parent::getExtensions(); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | try { |
| 74 | 74 | $file = GeneralUtility::makeInstance(ResourceFactory::class)->getFileObject($fileUid); |
| 75 | - } catch (FileDoesNotExistException|\InvalidArgumentException $e) { |
|
| 75 | + } catch (FileDoesNotExistException | \InvalidArgumentException $e) { |
|
| 76 | 76 | continue; |
| 77 | 77 | } |
| 78 | 78 | |
@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | if ($processedImages !== []) { |
| 100 | 100 | $iconIdentifier = $this->data['systemLanguageRows'][(int)$sysLanguageUid]['flagIconIdentifier'] ?? 'flags-multiple'; |
| 101 | 101 | $html[] = '<div class="t3-form-original-language">'; |
| 102 | - $html[] = $iconFactory->getIcon($iconIdentifier, Icon::SIZE_SMALL)->render(); |
|
| 103 | - $html[] = implode(LF, $processedImages); |
|
| 102 | + $html[] = $iconFactory->getIcon($iconIdentifier, Icon::SIZE_SMALL)->render(); |
|
| 103 | + $html[] = implode(LF, $processedImages); |
|
| 104 | 104 | $html[] = '</div>'; |
| 105 | 105 | } |
| 106 | 106 | } |
@@ -518,7 +518,7 @@ |
||
| 518 | 518 | while (!feof($fh)) { |
| 519 | 519 | $line = (string)fgets($fh, 4096); |
| 520 | 520 | // Has a lot of info |
| 521 | - [$char, $name, $cat, , , $decomp, , , $num] = explode(';', rtrim($line)); |
|
| 521 | + [$char, $name, $cat,,, $decomp,,, $num] = explode(';', rtrim($line)); |
|
| 522 | 522 | $ord = hexdec($char); |
| 523 | 523 | if ($ord > 65535) { |
| 524 | 524 | // Only process the BMP |