@@ -48,15 +48,15 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | public function processNode(Node $methodCall, Scope $scope): array |
| 50 | 50 | { |
| 51 | - if (! $methodCall instanceof MethodCall |
|
| 52 | - || ! $methodCall->name instanceof Node\Identifier |
|
| 51 | + if (!$methodCall instanceof MethodCall |
|
| 52 | + || !$methodCall->name instanceof Node\Identifier |
|
| 53 | 53 | || $methodCall->name->name !== 'handle') { |
| 54 | 54 | return []; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | $type = $scope->getType($methodCall->var); |
| 58 | 58 | |
| 59 | - if (! (new ObjectType($this->commandBusClass))->isSuperTypeOf($type)->yes()) { |
|
| 59 | + if (!(new ObjectType($this->commandBusClass))->isSuperTypeOf($type)->yes()) { |
|
| 60 | 60 | return []; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | if ($type instanceof UnionType) { |
| 154 | 154 | return array_filter( |
| 155 | 155 | $type->getTypes(), |
| 156 | - function (Type $type) { |
|
| 156 | + function(Type $type) { |
|
| 157 | 157 | return $type instanceof TypeWithClassName; |
| 158 | 158 | } |
| 159 | 159 | ); |