@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Moka\Generator\Template; |
| 5 | 5 | |
@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | protected static function getVisibility(\Reflector $reflector): string |
| 19 | 19 | { |
| 20 | 20 | if ( |
| 21 | - !$reflector instanceof \ReflectionMethod && |
|
| 22 | - !$reflector instanceof \ReflectionProperty |
|
| 21 | + ! $reflector instanceof \ReflectionMethod && |
|
| 22 | + ! $reflector instanceof \ReflectionProperty |
|
| 23 | 23 | ) { |
| 24 | 24 | throw new InvalidArgumentException( |
| 25 | 25 | sprintf( |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Moka\Generator\Template; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Moka\Generator\Template; |
| 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 Moka\Generator\Template; |
| 5 | 5 | |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | $methods = $class->getMethods(\ReflectionMethod::IS_PUBLIC); |
| 68 | 68 | $methodsCode = []; |
| 69 | - $methodNames = array_map(function (\ReflectionMethod $method) { |
|
| 69 | + $methodNames = array_map(function(\ReflectionMethod $method) { |
|
| 70 | 70 | return $method->name; |
| 71 | 71 | }, $methods); |
| 72 | 72 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $getNameType = ''; |
| 75 | 75 | |
| 76 | 76 | foreach ($properties as $property) { |
| 77 | - if (!in_array($property->name, $methodNames)) { |
|
| 77 | + if ( ! in_array($property->name, $methodNames)) { |
|
| 78 | 78 | continue; |
| 79 | 79 | } |
| 80 | 80 | |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | foreach ($methods as $method) { |
| 87 | 87 | if ( |
| 88 | - !$method->isFinal() && |
|
| 89 | - !in_array($method->name, self::UNSAFE_METHODS, true) |
|
| 88 | + ! $method->isFinal() && |
|
| 89 | + ! in_array($method->name, self::UNSAFE_METHODS, true) |
|
| 90 | 90 | ) { |
| 91 | 91 | $methodsCode[] = MethodTemplate::generate($method); |
| 92 | 92 | } |