@@ -58,7 +58,7 @@ |
||
| 58 | 58 | ): Type { |
| 59 | 59 | $commandType = $scope->getType($methodCall->args[0]->value); |
| 60 | 60 | |
| 61 | - if (! $commandType instanceof ObjectType) { |
|
| 61 | + if (!$commandType instanceof ObjectType) { |
|
| 62 | 62 | return new MixedType(); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | { |
| 11 | 11 | public static function loadBootstrapFile(string $filename): CommandToHandlerMapping |
| 12 | 12 | { |
| 13 | - if (! file_exists($filename) || ! is_readable($filename)) { |
|
| 13 | + if (!file_exists($filename) || !is_readable($filename)) { |
|
| 14 | 14 | throw new ShouldNotHappenException('Tactician-PHPStan bootstrap file could not be located.'); |
| 15 | 15 | } |
| 16 | 16 | |
@@ -57,15 +57,15 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | public function processNode(Node $methodCall, Scope $scope): array |
| 59 | 59 | { |
| 60 | - if (! $methodCall instanceof MethodCall |
|
| 61 | - || ! $methodCall->name instanceof Node\Identifier |
|
| 60 | + if (!$methodCall instanceof MethodCall |
|
| 61 | + || !$methodCall->name instanceof Node\Identifier |
|
| 62 | 62 | || $methodCall->name->name !== $this->commandBusMethod) { |
| 63 | 63 | return []; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | $type = $scope->getType($methodCall->var); |
| 67 | 67 | |
| 68 | - if (! (new ObjectType($this->commandBusClass))->isSuperTypeOf($type)->yes()) { |
|
| 68 | + if (!(new ObjectType($this->commandBusClass))->isSuperTypeOf($type)->yes()) { |
|
| 69 | 69 | return []; |
| 70 | 70 | } |
| 71 | 71 | |
@@ -166,14 +166,14 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | return array_filter( |
| 168 | 168 | $types, |
| 169 | - function (Type $type) { |
|
| 170 | - if(! $type instanceof TypeWithClassName) { |
|
| 169 | + function(Type $type) { |
|
| 170 | + if (!$type instanceof TypeWithClassName) { |
|
| 171 | 171 | return false; |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | $classReflection = $this->broker->getClass($type->getClassName()); |
| 175 | 175 | |
| 176 | - return ! ($classReflection->isInterface() || $classReflection->isAbstract()); |
|
| 176 | + return !($classReflection->isInterface() || $classReflection->isAbstract()); |
|
| 177 | 177 | } |
| 178 | 178 | ); |
| 179 | 179 | } |