@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $returnTypeCode, |
| 87 | 87 | '\\'.$this->reflectionMethod->getDeclaringClass()->getName(), |
| 88 | 88 | $this->reflectionMethod->getName(), |
| 89 | - implode(', ', array_map(function (Injection $injection) { |
|
| 89 | + implode(', ', array_map(function(Injection $injection) { |
|
| 90 | 90 | return $injection->getCode(); |
| 91 | 91 | }, $this->getInjections())) |
| 92 | 92 | ); |
@@ -99,16 +99,16 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | private function getInjections(): array |
| 101 | 101 | { |
| 102 | - return array_map(function (ReflectionParameter $reflectionParameter) { |
|
| 102 | + return array_map(function(ReflectionParameter $reflectionParameter) { |
|
| 103 | 103 | $type = $reflectionParameter->getType(); |
| 104 | 104 | // No type? Let's inject by parameter name. |
| 105 | 105 | if ($type === null || $type->isBuiltin()) { |
| 106 | 106 | return new ServiceInjection($reflectionParameter->getName(), !$reflectionParameter->allowsNull()); |
| 107 | 107 | } |
| 108 | - if (((string)$type) === ContainerInterface::class) { |
|
| 108 | + if (((string) $type) === ContainerInterface::class) { |
|
| 109 | 109 | return new ContainerInjection(); |
| 110 | 110 | } |
| 111 | - return new ServiceInjection((string)$type, !$reflectionParameter->allowsNull()); |
|
| 111 | + return new ServiceInjection((string) $type, !$reflectionParameter->allowsNull()); |
|
| 112 | 112 | }, $this->getReflectionMethod()->getParameters()); |
| 113 | 113 | } |
| 114 | 114 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace TheCodingMachine\Funky; |
| 5 | 5 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | $slashPos = strrpos($className, '\\'); |
| 130 | 130 | if ($slashPos !== false) { |
| 131 | 131 | $namespace = 'namespace '.substr($className, 0, $slashPos).";\n"; |
| 132 | - $shortClassName = substr($className, $slashPos+1); |
|
| 132 | + $shortClassName = substr($className, $slashPos + 1); |
|
| 133 | 133 | } else { |
| 134 | 134 | $namespace = null; |
| 135 | 135 | $shortClassName = $className; |
@@ -29,10 +29,10 @@ |
||
| 29 | 29 | $objects = scandir($dir); |
| 30 | 30 | foreach ($objects as $object) { |
| 31 | 31 | if ($object !== "." && $object !== "..") { |
| 32 | - if (is_dir($dir. '/' .$object)) { |
|
| 33 | - self::rmdir($dir. '/' .$object); |
|
| 32 | + if (is_dir($dir.'/'.$object)) { |
|
| 33 | + self::rmdir($dir.'/'.$object); |
|
| 34 | 34 | } else { |
| 35 | - unlink($dir. '/' .$object); |
|
| 35 | + unlink($dir.'/'.$object); |
|
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | } |