@@ -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 | } |