@@ -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 | |
@@ -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\Annotations; |
| 5 | 5 | |
@@ -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 | } |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | $returnTypeCode, |
| 80 | 80 | '\\'.$this->reflectionMethod->getDeclaringClass()->getName(), |
| 81 | 81 | $this->reflectionMethod->getName(), |
| 82 | - implode(', ', array_map(function (Injection $injection) { |
|
| 82 | + implode(', ', array_map(function(Injection $injection) { |
|
| 83 | 83 | return $injection->getCode(); |
| 84 | 84 | }, $this->getInjections())) |
| 85 | 85 | ); |
@@ -80,8 +80,8 @@ |
||
| 80 | 80 | $returnTypeCode, |
| 81 | 81 | '\\'.$this->reflectionMethod->getDeclaringClass()->getName(), |
| 82 | 82 | $this->reflectionMethod->getName(), |
| 83 | - $previousParameterCode ? '$previous': '', |
|
| 84 | - implode('', array_map(function (Injection $injection) { |
|
| 83 | + $previousParameterCode ? '$previous' : '', |
|
| 84 | + implode('', array_map(function(Injection $injection) { |
|
| 85 | 85 | return ', '.$injection->getCode(); |
| 86 | 86 | }, $this->getInjections())) |
| 87 | 87 | ); |
@@ -39,10 +39,10 @@ |
||
| 39 | 39 | if ($type === null || $type->isBuiltin()) { |
| 40 | 40 | return new ServiceInjection($reflectionParameter->getName(), !$reflectionParameter->allowsNull()); |
| 41 | 41 | } |
| 42 | - if (((string)$type) === ContainerInterface::class) { |
|
| 42 | + if (((string) $type) === ContainerInterface::class) { |
|
| 43 | 43 | return new ContainerInjection(); |
| 44 | 44 | } |
| 45 | - return new ServiceInjection((string)$type, !$reflectionParameter->allowsNull()); |
|
| 45 | + return new ServiceInjection((string) $type, !$reflectionParameter->allowsNull()); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |