Completed
Push — master ( 98dc3b...789589 )
by Benjamin
05:25
created
src/Container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 namespace Bnf\Di;
4 4
 
5 5
 use Psr\Container\ContainerInterface;
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             foreach ($extensions as $id => $extension) {
36 36
                 if (isset($this->factories[$id])) {
37 37
                     $previousFactory = $this->factories[$id];
38
-                    $this->factories[$id] = function (ContainerInterface $container) use ($extension, $previousFactory) {
38
+                    $this->factories[$id] = function(ContainerInterface $container) use ($extension, $previousFactory) {
39 39
                         $previous = ($previousFactory)($container);
40 40
                         return ($extension)($container, $previous);
41 41
                     };
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $factory = $this->factories[$id] ?? null;
68 68
 
69
-        if ((bool)$factory) {
69
+        if ((bool) $factory) {
70 70
             // Remove factory as it is no longer required.
71 71
             // Set factory to false to be able to detect
72 72
             // cyclic dependency loops.
Please login to merge, or discard this patch.