Passed
Branch master (c87ba8)
by Christian
16:02
created
typo3/sysext/core/Classes/Package/PseudoServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         // provide an optional third parameter which is forwarded as
69 69
         // dynamic path to getPackagePath().
70 70
         foreach ($extensions as $serviceName => $previousCallable) {
71
-            $extensions[$serviceName] = function (ContainerInterface $container, $value) use ($previousCallable, $packagePath) {
71
+            $extensions[$serviceName] = function(ContainerInterface $container, $value) use ($previousCallable, $packagePath) {
72 72
                 return ($previousCallable)($container, $value, $packagePath);
73 73
             };
74 74
         }
Please login to merge, or discard this patch.
sysext/core/Classes/DependencyInjection/ServiceProviderCompilationPass.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
                 new Reference('service_container')
140 140
             ]);
141 141
         } else {
142
-            $factoryDefinition->setFactory([ new Reference($this->registryServiceName), 'createService' ]);
142
+            $factoryDefinition->setFactory([new Reference($this->registryServiceName), 'createService']);
143 143
             $factoryDefinition->setArguments([
144 144
                 $serviceProviderKey,
145 145
                 $serviceName,
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
                 new Reference('service_container')
184 184
             ]);
185 185
         } else {
186
-            $factoryDefinition->setFactory([ new Reference($this->registryServiceName), 'extendService' ]);
186
+            $factoryDefinition->setFactory([new Reference($this->registryServiceName), 'extendService']);
187 187
             $factoryDefinition->setArguments([
188 188
                 $serviceProviderKey,
189 189
                 $serviceName,
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
         }
262 262
         return [
263 263
             $serviceName . '_decorated_' . $counter,
264
-            $counter === 1 ? $serviceName : $serviceName . '_decorated_' . ($counter-1)
264
+            $counter === 1 ? $serviceName : $serviceName . '_decorated_' . ($counter - 1)
265 265
         ];
266 266
     }
267 267
 }
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/DependencyInjection/FailsafeContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@
 block discarded – undo
53 53
                 // create a lazy lookup to a factory from the list of vanilla factories.
54 54
                 // Lazy because we currently can not know whether a factory will only
55 55
                 // become available due to a subsequent provider.
56
-                $innerFactory = $this->factories[$id] ?? function (ContainerInterface $c) use (&$factories, $id) {
56
+                $innerFactory = $this->factories[$id] ?? function(ContainerInterface $c) use (&$factories, $id) {
57 57
                     return isset($factories[$id]) ? $factories[$id]($c) : null;
58 58
                 };
59 59
 
60
-                $this->factories[$id] = function (ContainerInterface $container) use ($extension, $innerFactory) {
60
+                $this->factories[$id] = function(ContainerInterface $container) use ($extension, $innerFactory) {
61 61
                     $previous = $innerFactory($container);
62 62
                     return $extension($container, $previous);
63 63
                 };
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/DependencyInjection/ContainerBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function __construct(array $earlyInstances)
54 54
     {
55
-        $this->defaultServices = $earlyInstances + [ self::class => $this ];
55
+        $this->defaultServices = $earlyInstances + [self::class => $this];
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Resource/Search/Result/FileSearchResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
         $this->result = FileSearchQuery::createForSearchDemand($this->searchDemand)->execute()->fetchAll();
122 122
         $this->resultCount = count($this->result);
123 123
         $this->result = array_map(
124
-            function (array $fileRow) {
124
+            function(array $fileRow) {
125 125
                 return GeneralUtility::makeInstance(ResourceFactory::class)->getFileObject($fileRow['uid'], $fileRow);
126 126
             },
127 127
             $this->result
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Http/CookieHeaderTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@
 block discarded – undo
33 33
      */
34 34
     private function resendCookieHeader(array $cookieNames = []): void
35 35
     {
36
-        $cookies = array_filter(headers_list(), function (string $header) {
36
+        $cookies = array_filter(headers_list(), function(string $header) {
37 37
             return stripos($header, 'Set-Cookie:') === 0;
38 38
         });
39
-        $cookies = array_map(function (string $cookieHeader) use ($cookieNames) {
39
+        $cookies = array_map(function(string $cookieHeader) use ($cookieNames) {
40 40
             $payload = ltrim(substr($cookieHeader, 11));
41 41
             $cookie = Cookie::fromString($payload);
42 42
             $sameSite = $cookie->getSameSite();
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Routing/Route.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         if (!empty($variableNames)) {
171 171
             $aspects = array_filter(
172 172
                 $this->aspects,
173
-                function (string $variableName) use ($variableNames) {
173
+                function(string $variableName) use ($variableNames) {
174 174
                     return in_array($variableName, $variableNames, true);
175 175
                 },
176 176
                 ARRAY_FILTER_USE_KEY
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         }
179 179
         return array_filter(
180 180
             $aspects,
181
-            function (AspectInterface $aspect) use ($classNames) {
181
+            function(AspectInterface $aspect) use ($classNames) {
182 182
                 $uses = class_uses($aspect);
183 183
                 foreach ($classNames as $className) {
184 184
                     if (!is_a($aspect, $className)
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Routing/Enhancer/VariableProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
         $namespacePrefix = $namespace ? $namespace . static::LEVEL_DELIMITER : '';
283 283
         $arguments = array_map('strval', $arguments);
284 284
         return array_map(
285
-            function (string $value) use ($arguments, $namespacePrefix, $hash) {
285
+            function(string $value) use ($arguments, $namespacePrefix, $hash) {
286 286
                 $value = $arguments[$value] ?? $value;
287 287
                 $value = $this->addNestedValue($value);
288 288
                 $value = $namespacePrefix . $value;
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         $arguments = array_map('strval', $arguments);
313 313
         $namespacePrefix = $namespace ? $namespace . static::LEVEL_DELIMITER : '';
314 314
         return array_map(
315
-            function (string $value) use ($arguments, $namespacePrefix, $hash) {
315
+            function(string $value) use ($arguments, $namespacePrefix, $hash) {
316 316
                 if ($hash) {
317 317
                     $value = $this->resolveHash($value);
318 318
                 }
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Routing/Aspect/AspectFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     public function createAspects(array $aspects, SiteLanguage $language, Site $site): array
63 63
     {
64 64
         $aspects = array_map(
65
-            function ($settings) use ($language, $site) {
65
+            function($settings) use ($language, $site) {
66 66
                 $type = (string)($settings['type'] ?? '');
67 67
                 $aspect = $this->create($type, $settings);
68 68
                 return $this->enrich($aspect, $language, $site);
Please login to merge, or discard this patch.