@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace TheCodingMachine\Pimple; |
4 | 4 | |
5 | -use Acclimate\Container\CompositeContainer; |
|
6 | 5 | use Acclimate\Container\ContainerAcclimator; |
7 | 6 | use Interop\Container\ContainerInterface; |
8 | 7 | use Interop\Container\ServiceProvider; |
@@ -47,14 +47,14 @@ |
||
47 | 47 | foreach ($entries as $key => $callable) { |
48 | 48 | if (isset($this->pimple[$key])) { |
49 | 49 | // Extend a previous entry |
50 | - $this->pimple[$key] = $this->pimple->extend($key, function ($previous, Container $c) use ($callable) { |
|
51 | - $getPrevious = function () use ($previous) { |
|
50 | + $this->pimple[$key] = $this->pimple->extend($key, function($previous, Container $c) use ($callable) { |
|
51 | + $getPrevious = function() use ($previous) { |
|
52 | 52 | return $previous; |
53 | 53 | }; |
54 | 54 | return call_user_func($callable, $this->acclimatedPimple, $getPrevious); |
55 | 55 | }); |
56 | 56 | } else { |
57 | - $this->pimple[$key] = function (Container $c) use ($callable) { |
|
57 | + $this->pimple[$key] = function(Container $c) use ($callable) { |
|
58 | 58 | return call_user_func($callable, $this->acclimatedPimple, null); |
59 | 59 | }; |
60 | 60 | } |