@@ -346,11 +346,11 @@ |
||
| 346 | 346 | |
| 347 | 347 | public function returnTypeIsLeaf(ResolveInfo $info): bool |
| 348 | 348 | { |
| 349 | - $returnType = $info->returnType instanceof WrappingType |
|
| 349 | + $returnType = $info->returnType instanceof WrappingType |
|
| 350 | 350 | ? $info->returnType->getWrappedType(true) |
| 351 | 351 | : $info->returnType; |
| 352 | 352 | |
| 353 | - return $returnType instanceof LeafType; |
|
| 353 | + return $returnType instanceof LeafType; |
|
| 354 | 354 | } |
| 355 | 355 | |
| 356 | 356 | public function decorateResponse(array $data): array |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $operationName, |
| 72 | 72 | [$this, 'resolveField'], |
| 73 | 73 | null // validationRules |
| 74 | - )->then(function ($value) use (&$result) { |
|
| 74 | + )->then(function($value) use (&$result) { |
|
| 75 | 75 | $result = $value; |
| 76 | 76 | }); |
| 77 | 77 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $field = $field->value; |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | - return call(static function () use ($field, $source, $args, $context, $info) { |
|
| 194 | + return call(static function() use ($field, $source, $args, $context, $info) { |
|
| 195 | 195 | return $field instanceof \Closure |
| 196 | 196 | ? $field($source, $args, $context, $info) |
| 197 | 197 | : $field; |
@@ -222,10 +222,10 @@ discard block |
||
| 222 | 222 | { |
| 223 | 223 | if (is_array($source) || $source instanceof \ArrayAccess) { |
| 224 | 224 | return collect($this->propertyNames($info)) |
| 225 | - ->map(function ($propertyName) use ($source) { |
|
| 225 | + ->map(function($propertyName) use ($source) { |
|
| 226 | 226 | return $source[$propertyName] ?? null; |
| 227 | 227 | }) |
| 228 | - ->reject(function ($value) { |
|
| 228 | + ->reject(function($value) { |
|
| 229 | 229 | return is_null($value); |
| 230 | 230 | }) |
| 231 | 231 | ->first(); |
@@ -236,10 +236,10 @@ discard block |
||
| 236 | 236 | { |
| 237 | 237 | if (is_object($source)) { |
| 238 | 238 | return collect($this->propertyNames($info)) |
| 239 | - ->map(function ($propertyName) use ($source) { |
|
| 239 | + ->map(function($propertyName) use ($source) { |
|
| 240 | 240 | return $source->{$propertyName} ?? null; |
| 241 | 241 | }) |
| 242 | - ->reject(function ($value) { |
|
| 242 | + ->reject(function($value) { |
|
| 243 | 243 | return is_null($value); |
| 244 | 244 | }) |
| 245 | 245 | ->first(); |