@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | */ |
| 385 | 385 | protected function resolveParameters($parameters) |
| 386 | 386 | { |
| 387 | - return array_map(function ($parameter) { |
|
| 387 | + return array_map(function($parameter) { |
|
| 388 | 388 | if (is_string($parameter)) { |
| 389 | 389 | $parameter = $this->formatParameter($parameter); |
| 390 | 390 | } elseif ($parameter instanceof Reference) { |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | throw new DependencyInjectionException(sprintf("Parameter [%s] is not defined", $key)); |
| 414 | 414 | } |
| 415 | 415 | //"fool%bar%baz" |
| 416 | - return preg_replace_callback("#%([^%\s]+)%#", function ($matches) { |
|
| 416 | + return preg_replace_callback("#%([^%\s]+)%#", function($matches) { |
|
| 417 | 417 | $key = $matches[1]; |
| 418 | 418 | if ($parameter = $this->parameters->getParameter($key)) { |
| 419 | 419 | return $parameter; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * Bind an callable to the container with its name |
| 65 | 65 | * @param string $name |
| 66 | - * @param mixed $creation A invalid callable |
|
| 66 | + * @param callable $creation A invalid callable |
|
| 67 | 67 | * @throws ConfigException |
| 68 | 68 | * @return $this |
| 69 | 69 | */ |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | */ |
| 91 | 91 | public function setMethodCall($method, $arguments) |
| 92 | 92 | { |
| 93 | - $this->calls[$method] = (array)$arguments; |
|
| 93 | + $this->calls[$method] = (array) $arguments; |
|
| 94 | 94 | return $this; |
| 95 | 95 | } |
| 96 | 96 | |