@@ -44,13 +44,13 @@ discard block |
||
44 | 44 | |
45 | 45 | public function processNode(Node $methodCall, Scope $scope): array |
46 | 46 | { |
47 | - if (! $methodCall instanceof MethodCall) { |
|
47 | + if (!$methodCall instanceof MethodCall) { |
|
48 | 48 | return []; |
49 | 49 | } |
50 | 50 | |
51 | 51 | $type = $scope->getType($methodCall->var); |
52 | 52 | |
53 | - if (! (new ObjectType(CommandBus::class))->isSuperTypeOf($type)->yes()) { |
|
53 | + if (!(new ObjectType(CommandBus::class))->isSuperTypeOf($type)->yes()) { |
|
54 | 54 | return []; |
55 | 55 | } |
56 | 56 | |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | if ($type instanceof UnionType) { |
148 | 148 | return array_filter( |
149 | 149 | $type->getTypes(), |
150 | - function (Type $type) { |
|
150 | + function(Type $type) { |
|
151 | 151 | return $type instanceof TypeWithClassName; |
152 | 152 | } |
153 | 153 | ); |
@@ -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 |