Completed
Branch iterable-non-traversable (adc152)
by Benjamin
04:32
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;
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
             foreach ($provider->getExtensions() as $id => $extension) {
35 35
                 // Decorate a previously defined extension or if that is not available,
36 36
                 // create a lazy lookup to a factory from the list of vanilla factories.
37
-                $innerFactory = $this->factories[$id] ?? function (ContainerInterface $container) use ($id, &$vanillaFactories) {
37
+                $innerFactory = $this->factories[$id] ?? function(ContainerInterface $container) use ($id, &$vanillaFactories) {
38 38
                     return isset($vanillaFactories[$id]) ? $vanillaFactories[$id]($container) : null;
39 39
                 };
40 40
 
41
-                $this->factories[$id] = function (ContainerInterface $container) use ($extension, $innerFactory) {
41
+                $this->factories[$id] = function(ContainerInterface $container) use ($extension, $innerFactory) {
42 42
                     $previous = ($innerFactory)($container);
43 43
                     return ($extension)($container, $previous);
44 44
                 };
Please login to merge, or discard this patch.