Passed
Branch master (c87ba8)
by Christian
16:02
created
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectItems.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
                     $direction = strtolower($direction);
293 293
                     @usort(
294 294
                         $items,
295
-                        function ($item1, $item2) use ($direction) {
295
+                        function($item1, $item2) use ($direction) {
296 296
                             if ($direction === 'desc') {
297 297
                                 return strcasecmp($item1[0], $item2[0]) <= 0;
298 298
                             }
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
                     $direction = strtolower($direction);
305 305
                     @usort(
306 306
                         $items,
307
-                        function ($item1, $item2) use ($direction) {
307
+                        function($item1, $item2) use ($direction) {
308 308
                             if ($direction === 'desc') {
309 309
                                 return strcasecmp($item1[1], $item2[1]) <= 0;
310 310
                             }
Please login to merge, or discard this patch.
typo3/sysext/extbase/Classes/Configuration/AbstractConfigurationManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
                 // All implementations of getTreeList allow to pass the ids negative to include them into the result
190 190
                 // otherwise only childpages are returned
191 191
                 $storagePids = GeneralUtility::intExplode(',', $frameworkConfiguration['persistence']['storagePid']);
192
-                array_walk($storagePids, function (&$storagePid) {
192
+                array_walk($storagePids, function(&$storagePid) {
193 193
                     if ($storagePid > 0) {
194 194
                         $storagePid = -$storagePid;
195 195
                     }
Please login to merge, or discard this patch.
sysext/extbase/Classes/Validation/Validator/AbstractCompositeValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         // check for required options being set
62 62
         array_walk(
63 63
             $this->supportedOptions,
64
-            function ($supportedOptionData, $supportedOptionName, $options) {
64
+            function($supportedOptionData, $supportedOptionName, $options) {
65 65
                 if (isset($supportedOptionData[3]) && !array_key_exists($supportedOptionName, $options)) {
66 66
                     throw new InvalidValidationOptionsException('Required validation option not set: ' . $supportedOptionName, 1339163922);
67 67
                 }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         // merge with default values
73 73
         $this->options = array_merge(
74 74
             array_map(
75
-                function ($value) {
75
+                function($value) {
76 76
                     return $value[0];
77 77
                 },
78 78
                 $this->supportedOptions
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Log/LogManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                     /** @var \TYPO3\CMS\Core\Log\Writer\WriterInterface $logWriter */
146 146
                     $logWriter = GeneralUtility::makeInstance($logWriterClassName, $logWriterOptions);
147 147
                     $logger->addWriter($severityLevel, $logWriter);
148
-                } catch (InvalidArgumentException|InvalidLogWriterConfigurationException $e) {
148
+                } catch (InvalidArgumentException | InvalidLogWriterConfigurationException $e) {
149 149
                     $logger->warning('Instantiation of LogWriter "' . $logWriterClassName . '" failed for logger ' . $logger->getName() . ' (' . $e->getMessage() . ')');
150 150
                 }
151 151
             }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                     /** @var \TYPO3\CMS\Core\Log\Processor\ProcessorInterface $logProcessor */
167 167
                     $logProcessor = GeneralUtility::makeInstance($logProcessorClassName, $logProcessorOptions);
168 168
                     $logger->addProcessor($severityLevel, $logProcessor);
169
-                } catch (InvalidArgumentException|InvalidLogProcessorConfigurationException $e) {
169
+                } catch (InvalidArgumentException | InvalidLogProcessorConfigurationException $e) {
170 170
                     $logger->warning('Instantiation of LogProcessor "' . $logProcessorClassName . '" failed for logger ' . $logger->getName() . ' (' . $e->getMessage() . ')');
171 171
                 }
172 172
             }
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Package/PackageManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@
 block discarded – undo
403 403
             try {
404 404
                 $packagePath = PathUtility::sanitizeTrailingSeparator($this->packagesBasePath . $stateConfiguration['packagePath']);
405 405
                 $package = new Package($this, $packageKey, $packagePath);
406
-            } catch (InvalidPackagePathException|InvalidPackageKeyException|InvalidPackageManifestException $exception) {
406
+            } catch (InvalidPackagePathException | InvalidPackageKeyException | InvalidPackageManifestException $exception) {
407 407
                 $this->unregisterPackageByPackageKey($packageKey);
408 408
                 $packageStatesHasChanged = true;
409 409
                 continue;
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Resource/ResourceStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2780,7 +2780,7 @@
 block discarded – undo
2780 2780
                         $this->processingFolder = $this->getResourceFactoryInstance()->createFolderObject($this, $data['identifier'], $data['name']);
2781 2781
                     }
2782 2782
                 }
2783
-            } catch (InsufficientFolderWritePermissionsException|ResourcePermissionsUnavailableException $e) {
2783
+            } catch (InsufficientFolderWritePermissionsException | ResourcePermissionsUnavailableException $e) {
2784 2784
                 $this->processingFolder = GeneralUtility::makeInstance(
2785 2785
                     InaccessibleFolder::class,
2786 2786
                     $this,
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     public function renderTceformsSelectDropdown(&$PA)
44 44
     {
45 45
         $allowedStorageIds = array_map(
46
-            function (ResourceStorage $storage) {
46
+            function(ResourceStorage $storage) {
47 47
                 return $storage->getUid();
48 48
             },
49 49
             $this->getBackendUserAuthentication()->getFileStorages()
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/ServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,18 +47,18 @@
 block discarded – undo
47 47
     public function getFactories(): array
48 48
     {
49 49
         return [
50
-            Application::class => [ static::class, 'getApplication' ],
51
-            RequestHandler::class => [ static::class, 'getRequestHandler' ],
52
-            RouteDispatcher::class => [ static::class, 'getRouteDispatcher' ],
53
-            'backend.middlewares' => [ static::class, 'getBackendMiddlewares' ],
54
-            'backend.routes' => [ static::class, 'getBackendRoutes' ],
50
+            Application::class => [static::class, 'getApplication'],
51
+            RequestHandler::class => [static::class, 'getRequestHandler'],
52
+            RouteDispatcher::class => [static::class, 'getRouteDispatcher'],
53
+            'backend.middlewares' => [static::class, 'getBackendMiddlewares'],
54
+            'backend.routes' => [static::class, 'getBackendRoutes'],
55 55
         ];
56 56
     }
57 57
 
58 58
     public function getExtensions(): array
59 59
     {
60 60
         return [
61
-            Router::class => [ static::class, 'configureBackendRouter' ],
61
+            Router::class => [static::class, 'configureBackendRouter'],
62 62
         ] + parent::getExtensions();
63 63
     }
64 64
 
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
         return ArrayUtility::keepItemsInArray(
585 585
             $items,
586 586
             $result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems'],
587
-            function ($value) {
587
+            function($value) {
588 588
                 return $value[1];
589 589
             }
590 590
         );
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
         }
733 733
 
734 734
         $allowedStorageIds = array_map(
735
-            function (ResourceStorage $storage) {
735
+            function(ResourceStorage $storage) {
736 736
                 return $storage->getUid();
737 737
             },
738 738
             $this->getBackendUser()->getFileStorages()
@@ -740,7 +740,7 @@  discard block
 block discarded – undo
740 740
 
741 741
         return array_filter(
742 742
             $items,
743
-            function (array $item) use ($allowedStorageIds) {
743
+            function(array $item) use ($allowedStorageIds) {
744 744
                 $itemValue = $item[1] ?? null;
745 745
                 return empty($itemValue)
746 746
                     || in_array((int)$itemValue, $allowedStorageIds, true);
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
             }
835 835
             // Sort fields by the translated value
836 836
             if (!empty($excludeArrayTable)) {
837
-                usort($excludeArrayTable, function (array $array1, array $array2) {
837
+                usort($excludeArrayTable, function(array $array1, array $array2) {
838 838
                     $array1 = reset($array1);
839 839
                     $array2 = reset($array2);
840 840
                     if (is_string($array1) && is_string($array2)) {
Please login to merge, or discard this patch.