@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare (strict_types=1); |
|
| 2 | +declare (strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace TheCodingMachine\Funky\Injections; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare (strict_types=1); |
|
| 2 | +declare (strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace TheCodingMachine\Funky\Injections; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace TheCodingMachine\Funky; |
| 5 | 5 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $returnTypeCode, |
| 88 | 88 | $this->reflectionMethod->getDeclaringClass()->getName(), |
| 89 | 89 | $this->reflectionMethod->getName(), |
| 90 | - implode(', ', array_map(function(Injection $injection) {return $injection->getCode();}, $this->getInjections())) |
|
| 90 | + implode(', ', array_map(function(Injection $injection) {return $injection->getCode(); }, $this->getInjections())) |
|
| 91 | 91 | ); |
| 92 | 92 | } |
| 93 | 93 | |
@@ -104,10 +104,10 @@ discard block |
||
| 104 | 104 | if ($type === null || $type->isBuiltin()) { |
| 105 | 105 | return new ServiceInjection($reflectionParameter->getName(), !$reflectionParameter->allowsNull()); |
| 106 | 106 | } |
| 107 | - if (((string)$type) === ContainerInterface::class) { |
|
| 107 | + if (((string) $type) === ContainerInterface::class) { |
|
| 108 | 108 | return new ContainerInjection(); |
| 109 | 109 | } |
| 110 | - return new ServiceInjection((string)$type, !$reflectionParameter->allowsNull()); |
|
| 110 | + return new ServiceInjection((string) $type, !$reflectionParameter->allowsNull()); |
|
| 111 | 111 | }, $this->getReflectionMethod()->getParameters()); |
| 112 | 112 | } |
| 113 | 113 | |