Completed
Push — master ( 9f77a0...a9843f )
by
unknown
03:10
created
DependencyInjection/Compiler/AutowiringCompilerPass.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -338,9 +338,9 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
DependencyInjection/Compiler/AutoscanCompilerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/AutowiringCompilerPassPropertyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/AutowiringCompilerPassTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.