@@ -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( |
@@ -60,7 +60,7 @@ 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 | 65 | }, (array)$parameterBag->resolveValue("%autowiring.fast_annotation_checks%"))) . "/"; |
| 66 | 66 | } catch (ParameterNotFoundException $exception) { |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | |
| 400 | 400 | // autowire from class map |
| 401 | 401 | if ($isArray) { |
| 402 | - return array_map(function ($serviceId) { |
|
| 402 | + return array_map(function($serviceId) { |
|
| 403 | 403 | return new Reference($serviceId); |
| 404 | 404 | }, $this->classMap->getMulti($className)); |
| 405 | 405 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | try { |
| 41 | - $fastAnnotationChecksRegex = implode("|", array_map(function ($s) { |
|
| 41 | + $fastAnnotationChecksRegex = implode("|", array_map(function($s) { |
|
| 42 | 42 | return preg_quote($s); |
| 43 | 43 | }, (array)$parameterBag->resolveValue("%autowiring.fast_annotation_checks%"))); |
| 44 | 44 | } catch (ParameterNotFoundException $e) { |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | $reference = $autowiredServiceDefinition->getProperties()["property"]; |
| 48 | 48 | $this->assertInstanceOf("Symfony\\Component\\DependencyInjection\\Reference", $reference); |
| 49 | - $this->assertSame("someservice", (string) $reference); |
|
| 49 | + $this->assertSame("someservice", (string)$reference); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** @var Reference $reference */ |
| 62 | 62 | $reference = $arguments[0]; |
| 63 | 63 | $this->assertInstanceOf("Symfony\\Component\\DependencyInjection\\Reference", $reference); |
| 64 | - $this->assertSame("someservice", (string) $reference); |
|
| 64 | + $this->assertSame("someservice", (string)$reference); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | public function testAutowireConstructorWithInterface() |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | /** @var Reference $reference */ |
| 86 | 86 | $reference = $arguments[0]; |
| 87 | 87 | $this->assertInstanceOf("Symfony\\Component\\DependencyInjection\\Reference", $reference); |
| 88 | - $this->assertSame("someservice", (string) $reference); |
|
| 88 | + $this->assertSame("someservice", (string)$reference); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | public function testAutowireConstructorWithInterfaceOptionally() |
@@ -128,10 +128,10 @@ discard block |
||
| 128 | 128 | /** @var Reference $reference */ |
| 129 | 129 | $reference = $arguments[0]; |
| 130 | 130 | $this->assertInstanceOf("Symfony\\Component\\DependencyInjection\\Reference", $reference); |
| 131 | - $this->assertSame("someservice", (string) $reference); |
|
| 131 | + $this->assertSame("someservice", (string)$reference); |
|
| 132 | 132 | |
| 133 | 133 | $reference = $arguments[1]; |
| 134 | 134 | $this->assertInstanceOf("Symfony\\Component\\DependencyInjection\\Reference", $reference); |
| 135 | - $this->assertSame("someservice2", (string) $reference); |
|
| 135 | + $this->assertSame("someservice2", (string)$reference); |
|
| 136 | 136 | } |
| 137 | 137 | } |