Completed
Push — master ( c04ba9...19acfd )
by Martin
04:21
created
src/DependencyInjection/NeonFileLoader.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
             if (!$this->container->hasExtension($namespace)) {
137 137
                 $extensionNamespaces = array_filter(array_map(
138
-                    function (ExtensionInterface $ext) {
138
+                    function(ExtensionInterface $ext) {
139 139
                         return $ext->getAlias();
140 140
                     },
141 141
                     $this->container->getExtensions()
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
         }
399 399
 
400 400
         $autowired = false;
401
-        array_walk($service['arguments'], function (&$value) use (&$autowired) {
401
+        array_walk($service['arguments'], function(&$value) use (&$autowired) {
402 402
             if ('...' === $value) {
403 403
                 $value = '';
404 404
                 $autowired = true;
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
             } elseif (strpos($factory, ':') !== false) {
563 563
                 $parts = explode(':', $factory, 2);
564 564
 
565
-                return [$this->resolveServices(('@' === $parts[0][0] ?: '@').$parts[0], $file), $parts[1]];
565
+                return [$this->resolveServices(('@' === $parts[0][0] ?: '@') . $parts[0], $file), $parts[1]];
566 566
             } else {
567 567
                 return $factory;
568 568
             }
@@ -587,12 +587,12 @@  discard block
 block discarded – undo
587 587
         }
588 588
 
589 589
         if (is_array($value)) {
590
-            $value = array_map(function ($value) use ($file) {
590
+            $value = array_map(function($value) use ($file) {
591 591
                 return $this->resolveServices($value, $file);
592 592
             }, $value);
593
-        } elseif (is_string($value) &&  0 === strpos($value, '@=')) {
593
+        } elseif (is_string($value) && 0 === strpos($value, '@=')) {
594 594
             return new Expression(substr($value, 2));
595
-        } elseif (is_string($value) &&  0 === strpos($value, '@')) {
595
+        } elseif (is_string($value) && 0 === strpos($value, '@')) {
596 596
             if (0 === strpos($value, '@@')) {
597 597
                 $value = substr($value, 1);
598 598
                 $invalidBehavior = null;
Please login to merge, or discard this patch.