@@ -54,39 +54,39 @@ |
||
54 | 54 | public function getFactories(): array |
55 | 55 | { |
56 | 56 | return [ |
57 | - Http\Application::class => [ static::class, 'getApplication' ], |
|
58 | - Http\NotFoundRequestHandler::class => [ static::class, 'getNotFoundRequestHandler' ], |
|
59 | - Service\ClearCacheService::class => [ static::class, 'getClearCacheService' ], |
|
60 | - Service\CoreUpdateService::class => [ static::class, 'getCoreUpdateService' ], |
|
61 | - Service\CoreVersionService::class => [ static::class, 'getCoreVersionService' ], |
|
62 | - Service\ExtensionConfigurationService::class => [ static::class, 'getExtensionConfigurationService' ], |
|
63 | - Service\LanguagePackService::class => [ static::class, 'getLanguagePackService' ], |
|
64 | - Service\LateBootService::class => [ static::class, 'getLateBootService' ], |
|
65 | - Service\LoadTcaService::class => [ static::class, 'getLoadTcaService' ], |
|
66 | - Service\SilentConfigurationUpgradeService::class => [ static::class, 'getSilentConfigurationUpgradeService' ], |
|
67 | - Service\Typo3tempFileService::class => [ static::class, 'getTypo3tempFileService' ], |
|
68 | - Service\UpgradeWizardsService::class => [ static::class, 'getUpgradeWizardsService' ], |
|
69 | - Middleware\Installer::class => [ static::class, 'getInstallerMiddleware' ], |
|
70 | - Middleware\Maintenance::class => [ static::class, 'getMaintenanceMiddleware' ], |
|
71 | - Controller\EnvironmentController::class => [ static::class, 'getEnvironmentController' ], |
|
72 | - Controller\IconController::class => [ static::class, 'getIconController' ], |
|
73 | - Controller\InstallerController::class => [ static::class, 'getInstallerController' ], |
|
74 | - Controller\LayoutController::class => [ static::class, 'getLayoutController' ], |
|
75 | - Controller\LoginController::class => [ static::class, 'getLoginController' ], |
|
76 | - Controller\MaintenanceController::class => [ static::class, 'getMaintenanceController' ], |
|
77 | - Controller\SettingsController::class => [ static::class, 'getSettingsController' ], |
|
78 | - Controller\UpgradeController::class => [ static::class, 'getUpgradeController' ], |
|
79 | - Command\LanguagePackCommand::class => [ static::class, 'getLanguagePackCommand' ], |
|
80 | - Command\UpgradeWizardRunCommand::class => [ static::class, 'getUpgradeWizardRunCommand' ], |
|
81 | - Command\UpgradeWizardListCommand::class => [ static::class, 'getUpgradeWizardListCommand' ], |
|
82 | - Database\PermissionsCheck::class => [ static::class, 'getPermissionsCheck' ], |
|
57 | + Http\Application::class => [static::class, 'getApplication'], |
|
58 | + Http\NotFoundRequestHandler::class => [static::class, 'getNotFoundRequestHandler'], |
|
59 | + Service\ClearCacheService::class => [static::class, 'getClearCacheService'], |
|
60 | + Service\CoreUpdateService::class => [static::class, 'getCoreUpdateService'], |
|
61 | + Service\CoreVersionService::class => [static::class, 'getCoreVersionService'], |
|
62 | + Service\ExtensionConfigurationService::class => [static::class, 'getExtensionConfigurationService'], |
|
63 | + Service\LanguagePackService::class => [static::class, 'getLanguagePackService'], |
|
64 | + Service\LateBootService::class => [static::class, 'getLateBootService'], |
|
65 | + Service\LoadTcaService::class => [static::class, 'getLoadTcaService'], |
|
66 | + Service\SilentConfigurationUpgradeService::class => [static::class, 'getSilentConfigurationUpgradeService'], |
|
67 | + Service\Typo3tempFileService::class => [static::class, 'getTypo3tempFileService'], |
|
68 | + Service\UpgradeWizardsService::class => [static::class, 'getUpgradeWizardsService'], |
|
69 | + Middleware\Installer::class => [static::class, 'getInstallerMiddleware'], |
|
70 | + Middleware\Maintenance::class => [static::class, 'getMaintenanceMiddleware'], |
|
71 | + Controller\EnvironmentController::class => [static::class, 'getEnvironmentController'], |
|
72 | + Controller\IconController::class => [static::class, 'getIconController'], |
|
73 | + Controller\InstallerController::class => [static::class, 'getInstallerController'], |
|
74 | + Controller\LayoutController::class => [static::class, 'getLayoutController'], |
|
75 | + Controller\LoginController::class => [static::class, 'getLoginController'], |
|
76 | + Controller\MaintenanceController::class => [static::class, 'getMaintenanceController'], |
|
77 | + Controller\SettingsController::class => [static::class, 'getSettingsController'], |
|
78 | + Controller\UpgradeController::class => [static::class, 'getUpgradeController'], |
|
79 | + Command\LanguagePackCommand::class => [static::class, 'getLanguagePackCommand'], |
|
80 | + Command\UpgradeWizardRunCommand::class => [static::class, 'getUpgradeWizardRunCommand'], |
|
81 | + Command\UpgradeWizardListCommand::class => [static::class, 'getUpgradeWizardListCommand'], |
|
82 | + Database\PermissionsCheck::class => [static::class, 'getPermissionsCheck'], |
|
83 | 83 | ]; |
84 | 84 | } |
85 | 85 | |
86 | 86 | public function getExtensions(): array |
87 | 87 | { |
88 | 88 | return [ |
89 | - CommandRegistry::class => [ static::class, 'configureCommands' ], |
|
89 | + CommandRegistry::class => [static::class, 'configureCommands'], |
|
90 | 90 | ]; |
91 | 91 | } |
92 | 92 |
@@ -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); |
@@ -93,7 +93,7 @@ |
||
93 | 93 | |
94 | 94 | protected function checkPermissionOfWidgets(array $widgets): array |
95 | 95 | { |
96 | - return array_filter($widgets, function ($identifier) { |
|
96 | + return array_filter($widgets, function($identifier) { |
|
97 | 97 | return $this->getBackendUser()->check('available_widgets', $identifier); |
98 | 98 | }, ARRAY_FILTER_USE_KEY); |
99 | 99 | } |
@@ -115,7 +115,7 @@ |
||
115 | 115 | 'description' => trim((string)$item->description), |
116 | 116 | ]; |
117 | 117 | } |
118 | - usort($items, function ($item1, $item2) { |
|
118 | + usort($items, function($item1, $item2) { |
|
119 | 119 | return new \DateTime($item2['pubDate']) <=> new \DateTime($item1['pubDate']); |
120 | 120 | }); |
121 | 121 | $items = array_slice($items, 0, $this->options['limit']); |
@@ -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 |