@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Slince\Di; |
13 | 13 | |
14 | 14 | use Slince\Di\Exception\ConfigException; |
15 | -use Slince\Di\Exception\DependencyInjectionException; |
|
16 | 15 | use Slince\Di\Exception\NotFoundException; |
17 | 16 | use Interop\Container\ContainerInterface; |
18 | 17 |
@@ -219,7 +219,7 @@ |
||
219 | 219 | { |
220 | 220 | $this->calls[] = [ |
221 | 221 | $method, |
222 | - (array)$arguments |
|
222 | + (array) $arguments |
|
223 | 223 | ]; |
224 | 224 | return $this; |
225 | 225 | } |
@@ -222,7 +222,7 @@ |
||
222 | 222 | return $this->container->get(substr($value, 1)); |
223 | 223 | } |
224 | 224 | //"fool%bar%baz" |
225 | - return preg_replace_callback("#%([^%\s]+)%#", function ($matches) { |
|
225 | + return preg_replace_callback("#%([^%\s]+)%#", function($matches) { |
|
226 | 226 | $key = $matches[1]; |
227 | 227 | if ($parameter = $this->container->getParameter($key)) { |
228 | 228 | return $parameter; |