Passed
Push — master ( cc479d...64f04b )
by Koldo
08:33
created
tests/BuilderTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $this->expectException(InvalidArgumentException::class);
30 30
         ContainerBuilder::build([
31 31
             'services' => [
32
-                'some.service' => function () {
32
+                'some.service' => function() {
33 33
                 }
34 34
             ],
35 35
             'factories' => [],
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         ContainerBuilder::build([
44 44
             'services' => [
45 45
                 'some.service' => [
46
-                    'class' => function () {
46
+                    'class' => function() {
47 47
                     }
48 48
                 ]
49 49
             ],
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         ContainerBuilder::build([
59 59
             'services' => [
60 60
                 'some.service' => [
61
-                    function () {
61
+                    function() {
62 62
                     }
63 63
                 ]
64 64
             ],
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     {
111 111
         $container = ContainerBuilder::build([
112 112
             'factories' => [
113
-                'some.test.class' => function (ContainerInterface $container) {
113
+                'some.test.class' => function(ContainerInterface $container) {
114 114
                     return new SplStack();
115 115
                 },
116 116
             ],
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         ];
30 30
 
31 31
         foreach ($dependencies['factories'] ?? [] as $name => $factory) {
32
-            $containerConfig[$name] = static function (ContainerInterface $container) use ($factory) {
32
+            $containerConfig[$name] = static function(ContainerInterface $container) use ($factory) {
33 33
                 if (is_array($factory)) {
34 34
                     $class = array_shift($factory);
35 35
                     $instance = new $class();
Please login to merge, or discard this patch.