@@ -49,6 +49,7 @@ |
||
49 | 49 | |
50 | 50 | /** |
51 | 51 | * @TODO Remove this extra indirection when 5.3 support is dropped |
52 | + * @param \ReflectionFunctionAbstract $reflection |
|
52 | 53 | */ |
53 | 54 | private function invokeClosureCompat($reflection, $args) |
54 | 55 | { |
@@ -171,6 +171,9 @@ discard block |
||
171 | 171 | return $this; |
172 | 172 | } |
173 | 173 | |
174 | + /** |
|
175 | + * @param string $nameOrInstance |
|
176 | + */ |
|
174 | 177 | private function shareClass($nameOrInstance) |
175 | 178 | { |
176 | 179 | list(, $normalizedName) = $this->resolveAlias($nameOrInstance); |
@@ -319,6 +322,9 @@ discard block |
||
319 | 322 | return $result; |
320 | 323 | } |
321 | 324 | |
325 | + /** |
|
326 | + * @param string|null $name |
|
327 | + */ |
|
322 | 328 | private function filter($source, $name) |
323 | 329 | { |
324 | 330 | if (empty($name)) { |
@@ -384,6 +390,9 @@ discard block |
||
384 | 390 | return $obj; |
385 | 391 | } |
386 | 392 | |
393 | + /** |
|
394 | + * @param string $normalizedClass |
|
395 | + */ |
|
387 | 396 | private function provisionInstance($className, $normalizedClass, array $definition) |
388 | 397 | { |
389 | 398 | try { |
@@ -631,6 +640,9 @@ discard block |
||
631 | 640 | return $arg; |
632 | 641 | } |
633 | 642 | |
643 | + /** |
|
644 | + * @param string $normalizedClass |
|
645 | + */ |
|
634 | 646 | private function prepareInstance($obj, $normalizedClass) |
635 | 647 | { |
636 | 648 | if (isset($this->prepares[$normalizedClass])) { |
@@ -737,6 +749,9 @@ discard block |
||
737 | 749 | return $executableStruct; |
738 | 750 | } |
739 | 751 | |
752 | + /** |
|
753 | + * @param string $stringExecutable |
|
754 | + */ |
|
740 | 755 | private function buildExecutableStructFromString($stringExecutable) |
741 | 756 | { |
742 | 757 | if (function_exists($stringExecutable)) { |
@@ -270,7 +270,7 @@ |
||
270 | 270 | array_key_exists(1, $callableOrMethodStr) |
271 | 271 | ) { |
272 | 272 | if (is_string($callableOrMethodStr[0]) && is_string($callableOrMethodStr[1])) { |
273 | - $errorDetail = " but received ['".$callableOrMethodStr[0]."', '".$callableOrMethodStr[1]."']"; |
|
273 | + $errorDetail = " but received ['" . $callableOrMethodStr[0] . "', '" . $callableOrMethodStr[1] . "']"; |
|
274 | 274 | } |
275 | 275 | } |
276 | 276 | throw new ConfigException( |
@@ -30,7 +30,7 @@ |
||
30 | 30 | array_key_exists(0, $callableOrMethodStr) && |
31 | 31 | array_key_exists(0, $callableOrMethodStr)) { |
32 | 32 | if (is_string($callableOrMethodStr[0]) && is_string($callableOrMethodStr[1])) { |
33 | - $callableString .= $callableOrMethodStr[0].'::'.$callableOrMethodStr[1]; |
|
33 | + $callableString .= $callableOrMethodStr[0] . '::' . $callableOrMethodStr[1]; |
|
34 | 34 | } else if (is_object($callableOrMethodStr[0]) && is_string($callableOrMethodStr[1])) { |
35 | 35 | $callableString .= sprintf( |
36 | 36 | "[object(%s), '%s']", |