Passed
Branch master (c87ba8)
by Christian
16:02
created
typo3/sysext/extensionmanager/Classes/Controller/ActionController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
typo3/sysext/install/Classes/Service/EnableFileService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/ServiceProvider.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -38,49 +38,49 @@
 block discarded – undo
38 38
     public function getFactories(): array
39 39
     {
40 40
         return [
41
-            SymfonyEventDispatcher::class => [ static::class, 'getSymfonyEventDispatcher' ],
42
-            Cache\CacheManager::class => [ static::class, 'getCacheManager' ],
43
-            Charset\CharsetConverter::class => [ static::class, 'getCharsetConverter' ],
44
-            Configuration\SiteConfiguration::class => [ static::class, 'getSiteConfiguration' ],
45
-            Console\CommandApplication::class => [ static::class, 'getConsoleCommandApplication' ],
46
-            Console\CommandRegistry::class => [ static::class, 'getConsoleCommandRegistry' ],
47
-            Context\Context::class => [ static::class, 'getContext' ],
48
-            Crypto\PasswordHashing\PasswordHashFactory::class => [ static::class, 'getPasswordHashFactory' ],
49
-            EventDispatcher\EventDispatcher::class => [ static::class, 'getEventDispatcher' ],
50
-            EventDispatcher\ListenerProvider::class => [ static::class, 'getEventListenerProvider' ],
51
-            Http\MiddlewareStackResolver::class => [ static::class, 'getMiddlewareStackResolver' ],
52
-            Http\RequestFactory::class => [ static::class, 'getRequestFactory' ],
53
-            Imaging\IconFactory::class => [ static::class, 'getIconFactory' ],
54
-            Imaging\IconRegistry::class => [ static::class, 'getIconRegistry' ],
55
-            Localization\LanguageServiceFactory::class => [ static::class, 'getLanguageServiceFactory' ],
56
-            Localization\LanguageStore::class => [ static::class, 'getLanguageStore' ],
57
-            Localization\Locales::class => [ static::class, 'getLocales' ],
58
-            Localization\LocalizationFactory::class => [ static::class, 'getLocalizationFactory' ],
59
-            Mail\TransportFactory::class => [ static::class, 'getMailTransportFactory' ],
60
-            Messaging\FlashMessageService::class => [ static::class, 'getFlashMessageService' ],
61
-            Package\FailsafePackageManager::class => [ static::class, 'getFailsafePackageManager' ],
62
-            Registry::class => [ static::class, 'getRegistry' ],
63
-            Resource\Index\FileIndexRepository::class => [ static::class, 'getFileIndexRepository' ],
64
-            Resource\Index\MetaDataRepository::class => [ static::class, 'getMetaDataRepository' ],
65
-            Resource\Driver\DriverRegistry::class => [ static::class, 'getDriverRegistry' ],
66
-            Resource\ProcessedFileRepository::class => [ static::class, 'getProcessedFileRepository' ],
67
-            Resource\ResourceFactory::class => [ static::class, 'getResourceFactory' ],
68
-            Resource\StorageRepository::class => [ static::class, 'getStorageRepository' ],
69
-            Service\DependencyOrderingService::class => [ static::class, 'getDependencyOrderingService' ],
70
-            Service\FlexFormService::class => [ static::class, 'getFlexFormService' ],
71
-            Service\OpcodeCacheService::class => [ static::class, 'getOpcodeCacheService' ],
72
-            TimeTracker\TimeTracker::class => [ static::class, 'getTimeTracker' ],
73
-            TypoScript\Parser\ConstantConfigurationParser::class => [ static::class, 'getTypoScriptConstantConfigurationParser' ],
74
-            TypoScript\TypoScriptService::class => [ static::class, 'getTypoScriptService' ],
75
-            'middlewares' => [ static::class, 'getMiddlewares' ],
41
+            SymfonyEventDispatcher::class => [static::class, 'getSymfonyEventDispatcher'],
42
+            Cache\CacheManager::class => [static::class, 'getCacheManager'],
43
+            Charset\CharsetConverter::class => [static::class, 'getCharsetConverter'],
44
+            Configuration\SiteConfiguration::class => [static::class, 'getSiteConfiguration'],
45
+            Console\CommandApplication::class => [static::class, 'getConsoleCommandApplication'],
46
+            Console\CommandRegistry::class => [static::class, 'getConsoleCommandRegistry'],
47
+            Context\Context::class => [static::class, 'getContext'],
48
+            Crypto\PasswordHashing\PasswordHashFactory::class => [static::class, 'getPasswordHashFactory'],
49
+            EventDispatcher\EventDispatcher::class => [static::class, 'getEventDispatcher'],
50
+            EventDispatcher\ListenerProvider::class => [static::class, 'getEventListenerProvider'],
51
+            Http\MiddlewareStackResolver::class => [static::class, 'getMiddlewareStackResolver'],
52
+            Http\RequestFactory::class => [static::class, 'getRequestFactory'],
53
+            Imaging\IconFactory::class => [static::class, 'getIconFactory'],
54
+            Imaging\IconRegistry::class => [static::class, 'getIconRegistry'],
55
+            Localization\LanguageServiceFactory::class => [static::class, 'getLanguageServiceFactory'],
56
+            Localization\LanguageStore::class => [static::class, 'getLanguageStore'],
57
+            Localization\Locales::class => [static::class, 'getLocales'],
58
+            Localization\LocalizationFactory::class => [static::class, 'getLocalizationFactory'],
59
+            Mail\TransportFactory::class => [static::class, 'getMailTransportFactory'],
60
+            Messaging\FlashMessageService::class => [static::class, 'getFlashMessageService'],
61
+            Package\FailsafePackageManager::class => [static::class, 'getFailsafePackageManager'],
62
+            Registry::class => [static::class, 'getRegistry'],
63
+            Resource\Index\FileIndexRepository::class => [static::class, 'getFileIndexRepository'],
64
+            Resource\Index\MetaDataRepository::class => [static::class, 'getMetaDataRepository'],
65
+            Resource\Driver\DriverRegistry::class => [static::class, 'getDriverRegistry'],
66
+            Resource\ProcessedFileRepository::class => [static::class, 'getProcessedFileRepository'],
67
+            Resource\ResourceFactory::class => [static::class, 'getResourceFactory'],
68
+            Resource\StorageRepository::class => [static::class, 'getStorageRepository'],
69
+            Service\DependencyOrderingService::class => [static::class, 'getDependencyOrderingService'],
70
+            Service\FlexFormService::class => [static::class, 'getFlexFormService'],
71
+            Service\OpcodeCacheService::class => [static::class, 'getOpcodeCacheService'],
72
+            TimeTracker\TimeTracker::class => [static::class, 'getTimeTracker'],
73
+            TypoScript\Parser\ConstantConfigurationParser::class => [static::class, 'getTypoScriptConstantConfigurationParser'],
74
+            TypoScript\TypoScriptService::class => [static::class, 'getTypoScriptService'],
75
+            'middlewares' => [static::class, 'getMiddlewares'],
76 76
         ];
77 77
     }
78 78
 
79 79
     public function getExtensions(): array
80 80
     {
81 81
         return [
82
-            EventDispatcherInterface::class => [ static::class, 'provideFallbackEventDispatcher' ],
83
-            EventDispatcher\ListenerProvider::class => [ static::class, 'extendEventListenerProvider' ],
82
+            EventDispatcherInterface::class => [static::class, 'provideFallbackEventDispatcher'],
83
+            EventDispatcher\ListenerProvider::class => [static::class, 'extendEventListenerProvider'],
84 84
         ] + parent::getExtensions();
85 85
     }
86 86
 
Please login to merge, or discard this patch.
typo3/sysext/install/Classes/ServiceProvider.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -54,39 +54,39 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/Container/FlexFormElementContainer.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -146,15 +146,15 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
typo3/sysext/recordlist/Classes/Controller/RecordListController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
typo3/sysext/dashboard/Classes/WidgetRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
sysext/dashboard/Classes/Widgets/Provider/SysLogErrorsDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         for ($daysBefore = $this->days; $daysBefore >= 0; $daysBefore--) {
104 104
             $this->labels[] = date($format, strtotime('-' . $daysBefore . ' day'));
105 105
             $startPeriod = strtotime('-' . $daysBefore . ' day 0:00:00');
106
-            $endPeriod =  strtotime('-' . $daysBefore . ' day 23:59:59');
106
+            $endPeriod = strtotime('-' . $daysBefore . ' day 23:59:59');
107 107
 
108 108
             $this->data[] = $this->getNumberOfErrorsInPeriod($startPeriod, $endPeriod);
109 109
         }
Please login to merge, or discard this patch.