Test Failed
Push — master ( 670812...743154 )
by Koldo
02:16 queued 17s
created
Category
src/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 
96 96
         $parameters = (new ReflectionMethod($className, '__construct'))->getParameters();
97 97
 
98
-        $this->parameters[$id] = array_map(function (ReflectionParameter $parameter) use ($id) {
98
+        $this->parameters[$id] = array_map(function(ReflectionParameter $parameter) use ($id) {
99 99
             $type = $parameter->getType() ? $parameter->getType()->getName() : '';
100 100
             if (array_key_exists($parameter->getName(), $this->parameters[$id])) {
101 101
                 if (is_array($this->parameters[$id][$parameter->getName()])
Please login to merge, or discard this patch.
src/ContainerBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             $containerConfig[$name] = $service;
34 34
         }
35 35
         foreach ($dependencies['dependencies']['factories'] ?? [] as $name => $factory) {
36
-            $containerConfig[$name] = static function (ContainerInterface $container) use ($factory) {
36
+            $containerConfig[$name] = static function(ContainerInterface $container) use ($factory) {
37 37
                 if (is_array($factory)) {
38 38
                     $class = array_shift($factory);
39 39
                     $instance = new $class();
Please login to merge, or discard this patch.
tests/ContainerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $container = new Container([
38 38
             'config' => [],
39 39
             'parameters' => [],
40
-            'some.service' => function (ContainerInterface $container) {
40
+            'some.service' => function(ContainerInterface $container) {
41 41
                 $this->assertInstanceOf(Container::class, $container);
42 42
                 return new SplObjectStorage();
43 43
             },
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $container = new Container([
64 64
             'config' => [],
65 65
             'parameters' => [],
66
-            'some.service' => function (ContainerInterface $container) {
66
+            'some.service' => function(ContainerInterface $container) {
67 67
                 $this->assertInstanceOf(Container::class, $container);
68 68
                 return new SplObjectStorage();
69 69
             },
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                     'bazz' => ['Hello World']
86 86
                 ],
87 87
             ],
88
-            'some.service' => function (ContainerInterface $container) {
88
+            'some.service' => function(ContainerInterface $container) {
89 89
                 $this->assertInstanceOf(Container::class, $container);
90 90
                 return new SplObjectStorage();
91 91
             },
Please login to merge, or discard this patch.