@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $container = new Container(new ContainerConfig([ |
| 39 | 39 | 'config' => [], |
| 40 | 40 | 'parameters' => [], |
| 41 | - 'some.service' => function (ContainerInterface $container) { |
|
| 41 | + 'some.service' => function(ContainerInterface $container) { |
|
| 42 | 42 | $this->assertInstanceOf(Container::class, $container); |
| 43 | 43 | return new SplObjectStorage(); |
| 44 | 44 | }, |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $container = new Container(new ContainerConfig([ |
| 65 | 65 | 'config' => [], |
| 66 | 66 | 'parameters' => [], |
| 67 | - 'some.service' => function (ContainerInterface $container) { |
|
| 67 | + 'some.service' => function(ContainerInterface $container) { |
|
| 68 | 68 | $this->assertInstanceOf(Container::class, $container); |
| 69 | 69 | return new SplObjectStorage(); |
| 70 | 70 | }, |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | 'bazz' => ['Hello World'] |
| 87 | 87 | ], |
| 88 | 88 | ], |
| 89 | - 'some.service' => function (ContainerInterface $container) { |
|
| 89 | + 'some.service' => function(ContainerInterface $container) { |
|
| 90 | 90 | $this->assertInstanceOf(Container::class, $container); |
| 91 | 91 | return new SplObjectStorage(); |
| 92 | 92 | }, |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | if (!is_callable($factory)) { |
| 22 | 22 | continue; |
| 23 | 23 | } |
| 24 | - $dependencies->set(ContainerDelegatorFactory::class, static function () use ($delegatorNames, $factory) { |
|
| 24 | + $dependencies->set(ContainerDelegatorFactory::class, static function() use ($delegatorNames, $factory) { |
|
| 25 | 25 | return new ContainerDelegatorFactory($delegatorNames, $factory); |
| 26 | 26 | }); |
| 27 | 27 | $dependencies->set( |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | // Marshal from factory |
| 48 | 48 | $serviceFactory = $dependencies->get($service); |
| 49 | - return static function () use ($service, $serviceFactory, $container) { |
|
| 49 | + return static function() use ($service, $serviceFactory, $container) { |
|
| 50 | 50 | return is_callable($serviceFactory) |
| 51 | 51 | ? $serviceFactory($container, $service) |
| 52 | 52 | : (new $serviceFactory())($container, $service); |
@@ -66,10 +66,10 @@ |
||
| 66 | 66 | |
| 67 | 67 | return array_reduce( |
| 68 | 68 | $this->delegators, |
| 69 | - static function ($instance, $delegatorName) use ($serviceName, $container) { |
|
| 69 | + static function($instance, $delegatorName) use ($serviceName, $container) { |
|
| 70 | 70 | $delegator = is_callable($delegatorName) ? $delegatorName : new $delegatorName(); |
| 71 | 71 | |
| 72 | - return $delegator($container, $serviceName, static function () use ($instance) { |
|
| 72 | + return $delegator($container, $serviceName, static function() use ($instance) { |
|
| 73 | 73 | return $instance; |
| 74 | 74 | }); |
| 75 | 75 | }, |