@@ -338,9 +338,9 @@ |
||
338 | 338 | * @param string $docComment |
339 | 339 | * @param string $parameterName |
340 | 340 | * @param ReflectionClass $parameterReflectionClass |
341 | - * @param mixed $defaultValueAvailable |
|
341 | + * @param boolean $defaultValueAvailable |
|
342 | 342 | * @param mixed $defaultValue |
343 | - * @param $preferredServices |
|
343 | + * @param string[] $preferredServices |
|
344 | 344 | * @return mixed |
345 | 345 | */ |
346 | 346 | private function getValue( |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $this->classMap = $classMap; |
47 | 47 | $this->annotationReader = $annotationReader; |
48 | 48 | $this->phpParser = $phpParser; |
49 | - AnnotationRegistry::registerFile(__DIR__ . "/../../Annotation/Autowired.php"); |
|
49 | + AnnotationRegistry::registerFile(__DIR__."/../../Annotation/Autowired.php"); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | public function process(ContainerBuilder $container) |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | try { |
63 | - $fastAnnotationChecksRegex = "/" . implode("|", array_map(function ($s) { |
|
63 | + $fastAnnotationChecksRegex = "/".implode("|", array_map(function($s) { |
|
64 | 64 | return preg_quote($s); |
65 | - }, (array)$parameterBag->resolveValue("%autowiring.fast_annotation_checks%"))) . "/"; |
|
65 | + }, (array)$parameterBag->resolveValue("%autowiring.fast_annotation_checks%")))."/"; |
|
66 | 66 | } catch (ParameterNotFoundException $exception) { |
67 | 67 | $fastAnnotationChecksRegex = null; |
68 | 68 | } |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | $className = $parameterReflectionClass->getName(); |
365 | 365 | |
366 | 366 | } elseif (preg_match( |
367 | - "/@param\\s+([a-zA-Z0-9\\\\_]+)(\\[\\])?(\\|[^\\s]+)*\\s+\\\$" . preg_quote($parameterName) . "/", |
|
367 | + "/@param\\s+([a-zA-Z0-9\\\\_]+)(\\[\\])?(\\|[^\\s]+)*\\s+\\\$".preg_quote($parameterName)."/", |
|
368 | 368 | $docComment, |
369 | 369 | $m |
370 | 370 | )) { |
@@ -396,14 +396,14 @@ discard block |
||
396 | 396 | if (isset($useStatements[$lowerClassName])) { |
397 | 397 | $className = $useStatements[$lowerClassName]; |
398 | 398 | } elseif (strpos($className, "\\") === false) { |
399 | - $className = $reflectionClass->getNamespaceName() . "\\" . $className; |
|
399 | + $className = $reflectionClass->getNamespaceName()."\\".$className; |
|
400 | 400 | } |
401 | 401 | |
402 | 402 | $className = trim($className, "\\"); |
403 | 403 | |
404 | 404 | // autowire from class map |
405 | 405 | if ($isArray) { |
406 | - return array_map(function ($serviceId) { |
|
406 | + return array_map(function($serviceId) { |
|
407 | 407 | return new Reference($serviceId); |
408 | 408 | }, $this->classMap->getMulti($className)); |
409 | 409 |