@@ -31,6 +31,9 @@ |
||
31 | 31 | */ |
32 | 32 | protected $properties = []; |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $class |
|
36 | + */ |
|
34 | 37 | public function __construct($class, array $arguments = [], array $calls = [], array $properties = []) |
35 | 38 | { |
36 | 39 | $this->class = $class; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * Bind an callable to the container with its name |
64 | 64 | * @param string $name |
65 | - * @param mixed $creation A invalid callable |
|
65 | + * @param callable $creation A invalid callable |
|
66 | 66 | * @throws ConfigException |
67 | 67 | * @return $this |
68 | 68 | */ |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | |
399 | 399 | /** |
400 | 400 | * Formats parameter value |
401 | - * @param $value |
|
401 | + * @param string $value |
|
402 | 402 | * @return mixed |
403 | 403 | * @throws DependencyInjectionException |
404 | 404 | */ |
@@ -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; |