Passed
Push — main ( 00e164...d31815 )
by Breno
01:52
created
src/Definition/Build/ArrayDefinition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@
 block discarded – undo
54 54
         $values = $this->values;
55 55
 
56 56
         if ($this->recursive) {
57
-            array_walk_recursive($values, function (&$item) use ($container) {
57
+            array_walk_recursive($values, function(&$item) use ($container) {
58 58
                 $item = $item instanceof ReferenceDefinition ? $container->get($item->id()) : $item;
59 59
             });
60 60
         } else {
61
-            array_walk($values, function (&$item) use ($container) {
61
+            array_walk($values, function(&$item) use ($container) {
62 62
                 $item = $item instanceof ReferenceDefinition ? $container->get($item->id()) : $item;
63 63
             });
64 64
         }
Please login to merge, or discard this patch.
src/Definition/DefinitionResolver.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 resolveMany(Definition ...$definitions): array
63 63
     {
64 64
         return array_map(
65
-            function (Definition $definition) {
65
+            function(Definition $definition) {
66 66
                 return $this->resolve($definition);
67 67
             },
68 68
             $definitions
Please login to merge, or discard this patch.
src/Definition/MethodCall/CallableMethodTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $current = $this->getMethodCall();
21 21
         $newCallback =
22
-            function ($instance, ContainerInterface $container) use ($current, $method, $parameters) {
22
+            function($instance, ContainerInterface $container) use ($current, $method, $parameters) {
23 23
                 $_parameters = (new ArrayDefinition($parameters))->getConcrete($container);
24 24
                 $current($instance, $container);
25 25
                 if (!is_object($instance) || !method_exists($instance, $method)) {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function getMethodCall(): Closure
35 35
     {
36
-        return $this->methodsCallback ?? function ($i, $c) {
36
+        return $this->methodsCallback ?? function($i, $c) {
37 37
         } ;
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Autowiring/Reflector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function getTypeHint($subject, bool $detectPrimitiveTypes = true): ?string
21 21
     {
22 22
         $type = $subject->getType();
23
-        if (! $type instanceof ReflectionNamedType) {
23
+        if (!$type instanceof ReflectionNamedType) {
24 24
             return null;
25 25
         }
26 26
 
Please login to merge, or discard this patch.
src/Definition/AutoDetection.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
         }
78 78
 
79 79
         $hasDefinitionInside = false;
80
-        array_walk_recursive($value, function ($item) use (&$hasDefinitionInside) {
80
+        array_walk_recursive($value, function($item) use (&$hasDefinitionInside) {
81 81
             if ($item instanceof ReferenceDefinition) {
82 82
                 $hasDefinitionInside = true;
83 83
             }
Please login to merge, or discard this patch.
src/Autowiring/Parameter/UserDefinedParameterResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $resolved[$name] = true;
25 25
         if ($parameter->isVariadic()) {
26 26
             $_argument = !is_array($arguments[$name]) ? [$arguments[$name]] : $arguments[$name];
27
-            $result =  array_merge($result, $_argument);
27
+            $result = array_merge($result, $_argument);
28 28
         } else {
29 29
             $result[] = $arguments[$name];
30 30
         }
Please login to merge, or discard this patch.
src/Definition/Build/ReferenceDefinition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
         $this->id = $id;
37 37
         $this->fn = $fn;
38 38
 
39
-        if (! $this->fn instanceof Closure) {
40
-            $this->fn = function ($instance, ContainerInterface $c) {
39
+        if (!$this->fn instanceof Closure) {
40
+            $this->fn = function($instance, ContainerInterface $c) {
41 41
                 return $instance;
42 42
             };
43 43
         }
Please login to merge, or discard this patch.
src/Definition/Build/ClassDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
     public function getConcrete(ContainerInterface $container)
69 69
     {
70
-        if (! $this->classResolver instanceof ClassResolver) {
70
+        if (!$this->classResolver instanceof ClassResolver) {
71 71
             throw new ContainerException('No ClassResolver implementation has been set.');
72 72
         }
73 73
 
Please login to merge, or discard this patch.
src/Autowiring/Attributes/AttributesInjection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     {
65 65
         /** @var Inject|null $inject */
66 66
         $inject = $this->reflector->getFirstAttribute($subject, Inject::class);
67
-        if (! $inject instanceof Inject) {
67
+        if (!$inject instanceof Inject) {
68 68
             return null;
69 69
         }
70 70
 
Please login to merge, or discard this patch.

 

OSZAR »