@@ -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 |
@@ -53,15 +53,15 @@ discard block |
||
53 | 53 | |
54 | 54 | public function processNode(Node $methodCall, Scope $scope): array |
55 | 55 | { |
56 | - if (! $methodCall instanceof MethodCall |
|
57 | - || ! $methodCall->name instanceof Node\Identifier |
|
56 | + if (!$methodCall instanceof MethodCall |
|
57 | + || !$methodCall->name instanceof Node\Identifier |
|
58 | 58 | || $methodCall->name->name !== $this->commandBusMethod) { |
59 | 59 | return []; |
60 | 60 | } |
61 | 61 | |
62 | 62 | $type = $scope->getType($methodCall->var); |
63 | 63 | |
64 | - if (! (new ObjectType($this->commandBusClass))->isSuperTypeOf($type)->yes()) { |
|
64 | + if (!(new ObjectType($this->commandBusClass))->isSuperTypeOf($type)->yes()) { |
|
65 | 65 | return []; |
66 | 66 | } |
67 | 67 | |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | if ($type instanceof UnionType) { |
159 | 159 | return array_filter( |
160 | 160 | $type->getTypes(), |
161 | - function (Type $type) { |
|
161 | + function(Type $type) { |
|
162 | 162 | return $type instanceof TypeWithClassName; |
163 | 163 | } |
164 | 164 | ); |