@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $returnTypeCode, |
| 90 | 90 | $this->reflectionMethod->getDeclaringClass()->getName(), |
| 91 | 91 | $this->reflectionMethod->getName(), |
| 92 | - implode(', ', array_map(function (Injection $injection) { |
|
| 92 | + implode(', ', array_map(function(Injection $injection) { |
|
| 93 | 93 | return $injection->getCode(); |
| 94 | 94 | }, $this->getInjections())) |
| 95 | 95 | ); |
@@ -102,16 +102,16 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | private function getInjections(): array |
| 104 | 104 | { |
| 105 | - return array_map(function (ReflectionParameter $reflectionParameter) { |
|
| 105 | + return array_map(function(ReflectionParameter $reflectionParameter) { |
|
| 106 | 106 | $type = $reflectionParameter->getType(); |
| 107 | 107 | // No type? Let's inject by parameter name. |
| 108 | 108 | if ($type === null || $type->isBuiltin()) { |
| 109 | 109 | return new ServiceInjection($reflectionParameter->getName(), !$reflectionParameter->allowsNull()); |
| 110 | 110 | } |
| 111 | - if (((string)$type) === ContainerInterface::class) { |
|
| 111 | + if (((string) $type) === ContainerInterface::class) { |
|
| 112 | 112 | return new ContainerInjection(); |
| 113 | 113 | } |
| 114 | - return new ServiceInjection((string)$type, !$reflectionParameter->allowsNull()); |
|
| 114 | + return new ServiceInjection((string) $type, !$reflectionParameter->allowsNull()); |
|
| 115 | 115 | }, $this->getReflectionMethod()->getParameters()); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -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 | |