@@ -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,10 +166,10 @@ discard block |
||
166 | 166 | |
167 | 167 | return array_filter( |
168 | 168 | $types, |
169 | - function (Type $type) { |
|
169 | + function(Type $type) { |
|
170 | 170 | return $type instanceof TypeWithClassName |
171 | - && ! $this->broker->getClass($type->getClassName())->isInterface() |
|
172 | - && ! $this->broker->getClass($type->getClassName())->isAbstract(); |
|
171 | + && !$this->broker->getClass($type->getClassName())->isInterface() |
|
172 | + && !$this->broker->getClass($type->getClassName())->isAbstract(); |
|
173 | 173 | } |
174 | 174 | ); |
175 | 175 | } |