Passed
Branch master (b33026)
by Divine Niiquaye
159:36 queued 107:08
created
src/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
                 $this->autowireService($id, $definition->value);
285 285
             }
286 286
 
287
-            $definition = fn () => $this->resolver->resolve($definition->value, $definition->args);
287
+            $definition = fn() => $this->resolver->resolve($definition->value, $definition->args);
288 288
         } elseif ($autowire && !$definition instanceof RawDefinition) {
289 289
             $this->autowireService($id, $definition);
290 290
         }
Please login to merge, or discard this patch.
src/ContainerBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
             $astNodes[] = new Declare_([new DeclareDeclare('strict_types', $this->builder->val(1))]);
281 281
         }
282 282
 
283
-        $parameters = \array_map(fn ($value) => $this->builder->val($value), $this->parameters);
283
+        $parameters = \array_map(fn($value) => $this->builder->val($value), $this->parameters);
284 284
         $astNodes[] = $this->doCompile($this->definitions, $parameters, $options['containerClass'])->getNode();
285 285
 
286 286
         if ($options['printToString']) {
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
                 continue;
386 386
             }
387 387
 
388
-            $ids = \array_filter($ids, fn (string $id): bool => !$this->ignoredDefinition($definitions[$id] ?? null));
388
+            $ids = \array_filter($ids, fn(string $id): bool => !$this->ignoredDefinition($definitions[$id] ?? null));
389 389
 
390 390
             // If $ids are filtered, keys should not be preserved.
391 391
             $ids = \array_values($ids);
Please login to merge, or discard this patch.
src/Definition.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
         }
404 404
 
405 405
         if (!empty($types = $this->type)) {
406
-            $node->setReturnType(\is_array($types) ? new UnionType(\array_map(fn ($type) => new Name($type), $types)) : $types);
406
+            $node->setReturnType(\is_array($types) ? new UnionType(\array_map(fn($type) => new Name($type), $types)) : $types);
407 407
         }
408 408
 
409 409
         if (!$this->factory) {
Please login to merge, or discard this patch.
src/Facade/FacadeProxy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
                 }
117 117
 
118 118
                 if (!empty($type = $definition->getType())) {
119
-                    $proxyNode->setReturnType(\is_array($type) ? new UnionType(\array_map(fn ($type) => new Name($type), $type)) : $type);
119
+                    $proxyNode->setReturnType(\is_array($type) ? new UnionType(\array_map(fn($type) => new Name($type), $type)) : $type);
120 120
                 }
121 121
             }
122 122
 
Please login to merge, or discard this patch.
src/Loader/YamlFileLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -411,7 +411,7 @@
 block discarded – undo
411 411
             }
412 412
 
413 413
             if ($this->container->has($id) && $this->container instanceof Container) {
414
-                $this->container->extend($id, function (Definition $definition) use ($id, $service, $file, $defaults): Definition {
414
+                $this->container->extend($id, function(Definition $definition) use ($id, $service, $file, $defaults): Definition {
415 415
                     $this->parseDefinition($id, $service, $file, $defaults, $definition);
416 416
 
417 417
                     return $definition;
Please login to merge, or discard this patch.