@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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. |