@@ -22,7 +22,7 @@ |
||
22 | 22 | public function resolve(mixed $argument): array |
23 | 23 | { |
24 | 24 | /** @psalm-suppress RedundantPropertyInitializationCheck */ |
25 | - if (! isset($this->queue)) { |
|
25 | + if (!isset($this->queue)) { |
|
26 | 26 | throw new NextHandlerIsEmptyException('Cannot invoke pipeline resolver more than once'); |
27 | 27 | } |
28 | 28 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | public function resolve(mixed $type): Webonyx\Type |
24 | 24 | { |
25 | 25 | /** @psalm-suppress RedundantPropertyInitializationCheck */ |
26 | - if (! isset($this->queue)) { |
|
26 | + if (!isset($this->queue)) { |
|
27 | 27 | throw new NextHandlerIsEmptyException('Cannot invoke pipeline resolver more than once'); |
28 | 28 | } |
29 | 29 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | public function resolve(mixed $field): Webonyx\InputObjectField |
24 | 24 | { |
25 | 25 | /** @psalm-suppress RedundantPropertyInitializationCheck */ |
26 | - if (! isset($this->queue)) { |
|
26 | + if (!isset($this->queue)) { |
|
27 | 27 | throw new NextHandlerIsEmptyException('Cannot invoke pipeline resolver more than once'); |
28 | 28 | } |
29 | 29 |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | return $this; |
90 | 90 | } |
91 | 91 | |
92 | - private function getObjectField(int|string $name, string|array $field): AbstractObjectField |
|
92 | + private function getObjectField(int | string $name, string | array $field): AbstractObjectField |
|
93 | 93 | { |
94 | 94 | $fieldName = $field['name'] ?? $name; |
95 | 95 | |
96 | - if (! is_string($fieldName)) { |
|
96 | + if (!is_string($fieldName)) { |
|
97 | 97 | throw new CantResolveObjectFieldException( |
98 | 98 | 'Can\'t resolve ObjectField: wrong configuration - undefined name', |
99 | 99 | ); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | return $this->makeObjectField($fieldName, ['type' => $field]); |
104 | 104 | } |
105 | 105 | |
106 | - if (! isset($field['type']) || ! is_string($field['type'])) { |
|
106 | + if (!isset($field['type']) || !is_string($field['type'])) { |
|
107 | 107 | throw new CantResolveObjectFieldException( |
108 | 108 | 'Can\'t resolve ObjectField: wrong configuration - undefined type', |
109 | 109 | ); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | } |
178 | 178 | |
179 | 179 | if (is_array($callable)) { |
180 | - if (! isset($callable[0], $callable[1])) { |
|
180 | + if (!isset($callable[0], $callable[1])) { |
|
181 | 181 | throw new CantResolveObjectFieldException(sprintf( |
182 | 182 | 'Can\'t resolve ObjectField: wrong configuration - %s must be callable', |
183 | 183 | $option |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | return $this; |
74 | 74 | } |
75 | 75 | |
76 | - private function getObjectField(int|string $name, string|array $field): AbstractObjectField |
|
76 | + private function getObjectField(int | string $name, string | array $field): AbstractObjectField |
|
77 | 77 | { |
78 | 78 | $fieldName = $field['name'] ?? $name; |
79 | 79 | |
80 | - if (! is_string($fieldName)) { |
|
80 | + if (!is_string($fieldName)) { |
|
81 | 81 | throw new CantResolveObjectFieldException( |
82 | 82 | 'Can\'t resolve ObjectField: wrong configuration - undefined name', |
83 | 83 | ); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | return $this->makeObjectField($fieldName, ['type' => $field]); |
88 | 88 | } |
89 | 89 | |
90 | - if (! isset($field['type']) || ! is_string($field['type'])) { |
|
90 | + if (!isset($field['type']) || !is_string($field['type'])) { |
|
91 | 91 | throw new CantResolveObjectFieldException( |
92 | 92 | 'Can\'t resolve ObjectField: wrong configuration - undefined type', |
93 | 93 | ); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | public function resolve(mixed $field): Webonyx\FieldDefinition |
24 | 24 | { |
25 | 25 | /** @psalm-suppress RedundantPropertyInitializationCheck */ |
26 | - if (! isset($this->queue)) { |
|
26 | + if (!isset($this->queue)) { |
|
27 | 27 | throw new NextHandlerIsEmptyException('Cannot invoke pipeline resolver more than once'); |
28 | 28 | } |
29 | 29 |