@@ -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 |
@@ -58,15 +58,15 @@ discard block |
||
58 | 58 | |
59 | 59 | public function processNode(Node $methodCall, Scope $scope): array |
60 | 60 | { |
61 | - if (! $methodCall instanceof MethodCall |
|
62 | - || ! $methodCall->name instanceof Node\Identifier |
|
61 | + if (!$methodCall instanceof MethodCall |
|
62 | + || !$methodCall->name instanceof Node\Identifier |
|
63 | 63 | || $methodCall->name->name !== $this->commandBusMethod) { |
64 | 64 | return []; |
65 | 65 | } |
66 | 66 | |
67 | 67 | $type = $scope->getType($methodCall->var); |
68 | 68 | |
69 | - if (! (new ObjectType($this->commandBusClass))->isSuperTypeOf($type)->yes()) { |
|
69 | + if (!(new ObjectType($this->commandBusClass))->isSuperTypeOf($type)->yes()) { |
|
70 | 70 | return []; |
71 | 71 | } |
72 | 72 | |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | if ($type instanceof UnionType) { |
165 | 165 | $types = array_filter( |
166 | 166 | $type->getTypes(), |
167 | - function (Type $type) { |
|
167 | + function(Type $type) { |
|
168 | 168 | return $type instanceof TypeWithClassName; |
169 | 169 | } |
170 | 170 | ); |
@@ -172,13 +172,13 @@ discard block |
||
172 | 172 | |
173 | 173 | return array_filter( |
174 | 174 | $types, |
175 | - function (TypeWithClassName $type) { |
|
176 | - if (! $this->broker->hasClass($type->getClassName())) { |
|
175 | + function(TypeWithClassName $type) { |
|
176 | + if (!$this->broker->hasClass($type->getClassName())) { |
|
177 | 177 | return false; |
178 | 178 | } |
179 | 179 | |
180 | 180 | $class = $this->broker->getClass($type->getClassName()); |
181 | - return ! $class->isInterface() && ! $class->isAbstract(); |
|
181 | + return !$class->isInterface() && !$class->isAbstract(); |
|
182 | 182 | } |
183 | 183 | ); |
184 | 184 | } |