Passed
Push — master ( a5e131...fe1f18 )
by
unknown
16:18 queued 03:43
created
typo3/sysext/backend/Classes/Controller/Page/LocalizationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         }
114 114
         // Language "All" should not appear as a source of translations (see bug 92757) and keys should be sequential
115 115
         $availableLanguages = array_values(
116
-            array_filter($availableLanguages, function (array $languageRecord): bool {
116
+            array_filter($availableLanguages, function(array $languageRecord): bool {
117 117
                 return (int)$languageRecord['uid'] !== -1;
118 118
             })
119 119
         );
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/View/BackendLayout/ContentFetcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
             $untranslatedRecordUids = array_flip(
160 160
                 array_column(
161 161
                     // Eliminate records with "-1" as sys_language_uid since they can not be translated
162
-                    array_filter($contentRecordsInDefaultLanguage, static function (array $record): bool {
162
+                    array_filter($contentRecordsInDefaultLanguage, static function(array $record): bool {
163 163
                         return (int)($record['sys_language_uid'] ?? 0) !== -1;
164 164
                     }),
165 165
                     'uid'
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
         return ArrayUtility::keepItemsInArray(
404 404
             $items,
405 405
             $result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems'],
406
-            function ($value) {
406
+            function($value) {
407 407
                 return $value[1];
408 408
             }
409 409
         );
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
         }
552 552
 
553 553
         $allowedStorageIds = array_map(
554
-            function (ResourceStorage $storage) {
554
+            function(ResourceStorage $storage) {
555 555
                 return $storage->getUid();
556 556
             },
557 557
             $this->getBackendUser()->getFileStorages()
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
 
560 560
         return array_filter(
561 561
             $items,
562
-            function (array $item) use ($allowedStorageIds) {
562
+            function(array $item) use ($allowedStorageIds) {
563 563
                 $itemValue = $item[1] ?? null;
564 564
                 return empty($itemValue)
565 565
                     || in_array((int)$itemValue, $allowedStorageIds, true);
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Hooks/TcaItemsProcessorFunctions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@
 block discarded – undo
328 328
             }
329 329
             // Sort fields by the translated value
330 330
             if (!empty($excludeFieldGroup)) {
331
-                usort($excludeFieldGroup, static function (array $array1, array $array2) {
331
+                usort($excludeFieldGroup, static function(array $array1, array $array2) {
332 332
                     $array1 = reset($array1);
333 333
                     $array2 = reset($array2);
334 334
                     if (is_string($array1) && is_string($array2)) {
Please login to merge, or discard this patch.
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1008,7 +1008,7 @@  discard block
 block discarded – undo
1008 1008
         }
1009 1009
 
1010 1010
         $tagAttributes = array_map(
1011
-            function ($attributeValue) {
1011
+            function($attributeValue) {
1012 1012
                 if (is_array($attributeValue)) {
1013 1013
                     return implode(' ', $attributeValue);
1014 1014
                 }
@@ -1329,7 +1329,7 @@  discard block
 block discarded – undo
1329 1329
                 'currentUrl' => $this->listURL('', $table, 'pointer'),
1330 1330
                 'currentPage' => $currentPage,
1331 1331
                 'totalPages' => $totalPages,
1332
-                'firstElement' => ((($currentPage -1) * $itemsPerPage) + 1),
1332
+                'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1),
1333 1333
                 'lastElement' => $lastElementNumber,
1334 1334
                 'colspan' => $paginationColumns
1335 1335
             ])
@@ -1504,7 +1504,7 @@  discard block
 block discarded – undo
1504 1504
                         $params = [
1505 1505
                             'edit' => [
1506 1506
                                 $table => [
1507
-                                    (0-($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new'
1507
+                                    (0 - ($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new'
1508 1508
                                 ]
1509 1509
                             ],
1510 1510
                             'returnUrl' => $this->listURL()
@@ -1868,8 +1868,8 @@  discard block
 block discarded – undo
1868 1868
         $possibleTranslations = $this->possibleTranslations;
1869 1869
         if ($table === 'pages') {
1870 1870
             // Calculate possible translations for pages
1871
-            $possibleTranslations = array_map(static function ($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser);
1872
-            $possibleTranslations = array_filter($possibleTranslations, static function ($languageUid) { return $languageUid > 0;});
1871
+            $possibleTranslations = array_map(static function($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser);
1872
+            $possibleTranslations = array_filter($possibleTranslations, static function($languageUid) { return $languageUid > 0; });
1873 1873
         }
1874 1874
 
1875 1875
         // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration:
@@ -1915,7 +1915,7 @@  discard block
 block discarded – undo
1915 1915
     {
1916 1916
         $lang = $this->getLanguageService();
1917 1917
         // Load already selected fields, if any:
1918
-        $setFields = (array)($this->setFields[$table]?? []);
1918
+        $setFields = (array)($this->setFields[$table] ?? []);
1919 1919
         // Request fields from table:
1920 1920
         $fields = $this->makeFieldList($table, false, true);
1921 1921
         // Add pseudo "control" fields
Please login to merge, or discard this patch.
typo3/sysext/setup/Classes/Controller/SetupModuleController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -666,8 +666,8 @@
 block discarded – undo
666 666
                         break;
667 667
                     }
668 668
                     $html .= '<a href="' . htmlspecialchars((string)$uriBuilder->buildUriFromRoute('mfa')) . '" class="btn btn-' . ($hasActiveProviders ? 'default' : 'success') . '">';
669
-                    $html .=    $this->iconFactory->getIcon($hasActiveProviders ? 'actions-cog' : 'actions-add', Icon::SIZE_SMALL);
670
-                    $html .=    ' <span>' . htmlspecialchars($lang->getLL('mfaProviders.' . ($hasActiveProviders ? 'manageLinkTitle' : 'setupLinkTitle'))) . '</span>';
669
+                    $html .= $this->iconFactory->getIcon($hasActiveProviders ? 'actions-cog' : 'actions-add', Icon::SIZE_SMALL);
670
+                    $html .= ' <span>' . htmlspecialchars($lang->getLL('mfaProviders.' . ($hasActiveProviders ? 'manageLinkTitle' : 'setupLinkTitle'))) . '</span>';
671 671
                     $html .= '</a>';
672 672
                     break;
673 673
                 default:
Please login to merge, or discard this patch.
typo3/sysext/lowlevel/Classes/ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
     public function getFactories(): array
39 39
     {
40 40
         return [
41
-            Controller\ConfigurationController::class => [ static::class, 'getConfigurationController' ],
42
-            Controller\DatabaseIntegrityController::class => [ static::class, 'getDatabaseIntegrityController' ],
41
+            Controller\ConfigurationController::class => [static::class, 'getConfigurationController'],
42
+            Controller\DatabaseIntegrityController::class => [static::class, 'getDatabaseIntegrityController'],
43 43
         ];
44 44
     }
45 45
 
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Controller/Page/TreeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
         }
140 140
         if ($request->getQueryParams()['alternativeEntryPoints'] ?? false) {
141 141
             $this->alternativeEntryPoints = $request->getQueryParams()['alternativeEntryPoints'];
142
-            $this->alternativeEntryPoints = array_filter($this->alternativeEntryPoints, function ($pageId) {
142
+            $this->alternativeEntryPoints = array_filter($this->alternativeEntryPoints, function($pageId) {
143 143
                 return $this->getBackendUser()->isInWebMount($pageId) !== null;
144 144
             });
145 145
             $this->alternativeEntryPoints = array_map('intval', $this->alternativeEntryPoints);
Please login to merge, or discard this patch.
typo3/sysext/recordlist/Classes/Browser/DatabaseBrowser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     public function render()
78 78
     {
79 79
         $this->modTSconfig = BackendUtility::getPagesTSconfig((int)$this->expandPage)['mod.']['web_list.'] ?? [];
80
-        [, , , $allowedTables] = explode('|', $this->bparams);
80
+        [,,, $allowedTables] = explode('|', $this->bparams);
81 81
 
82 82
         $withTree = true;
83 83
         if ($allowedTables !== '' && $allowedTables !== '*') {
Please login to merge, or discard this patch.