@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace TheCodingMachine\Funky\Annotations; |
5 | 5 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $returnTypeCode = ''; |
41 | 41 | $returnType = $this->reflectionMethod->getReturnType(); |
42 | 42 | if ($returnType) { |
43 | - $allowsNull = $returnType->allowsNull() ? '?':''; |
|
43 | + $allowsNull = $returnType->allowsNull() ? '?' : ''; |
|
44 | 44 | if ($returnType->isBuiltin()) { |
45 | 45 | $returnTypeCode = ': '.$allowsNull.$returnType; |
46 | 46 | } else { |
@@ -89,8 +89,8 @@ discard block |
||
89 | 89 | $returnTypeCode, |
90 | 90 | '\\'.$this->reflectionMethod->getDeclaringClass()->getName(), |
91 | 91 | $this->reflectionMethod->getName(), |
92 | - $previousParameterCode ? '$previous': '', |
|
93 | - implode('', array_map(function (Injection $injection) { |
|
92 | + $previousParameterCode ? '$previous' : '', |
|
93 | + implode('', array_map(function(Injection $injection) { |
|
94 | 94 | return ', '.$injection->getCode(); |
95 | 95 | }, $this->getInjections())) |
96 | 96 | ); |