@@ -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 | } |
@@ -217,7 +217,7 @@ |
||
| 217 | 217 | return $this->container->get(substr($value, 1)); |
| 218 | 218 | } |
| 219 | 219 | //"fool%bar%baz" |
| 220 | - return preg_replace_callback("#%([^%\s]+)%#", function ($matches) { |
|
| 220 | + return preg_replace_callback("#%([^%\s]+)%#", function($matches) { |
|
| 221 | 221 | $key = $matches[1]; |
| 222 | 222 | if ($parameter = $this->container->getParameter($key)) { |
| 223 | 223 | return $parameter; |