@@ -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; |
@@ -36,11 +36,11 @@ discard block |
||
36 | 36 | // create a lazy lookup to a factory from the list of vanilla factories. |
37 | 37 | // Lazy because we can not right now, whether a factory that is not yet available |
38 | 38 | // might be available (later on) due to a later provider that defines it. |
39 | - $innerFactory = $this->factories[$id] ?? function (ContainerInterface $c) use (&$factories, $id) { |
|
39 | + $innerFactory = $this->factories[$id] ?? function(ContainerInterface $c) use (&$factories, $id) { |
|
40 | 40 | return isset($factories[$id]) ? $factories[$id]($c) : null; |
41 | 41 | }; |
42 | 42 | |
43 | - $this->factories[$id] = function (ContainerInterface $container) use ($extension, $innerFactory) { |
|
43 | + $this->factories[$id] = function(ContainerInterface $container) use ($extension, $innerFactory) { |
|
44 | 44 | $previous = ($innerFactory)($container); |
45 | 45 | return ($extension)($container, $previous); |
46 | 46 | }; |