@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function __invoke($batchLoadFunction, $defaultResolveValue = null) |
18 | 18 | { |
19 | - if (! $batchLoadFunction instanceof Closure) { |
|
19 | + if (!$batchLoadFunction instanceof Closure) { |
|
20 | 20 | $batchLoadFunction = Closure::fromCallable($batchLoadFunction); |
21 | 21 | } |
22 | 22 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | private function scheduleResolveIfNeeded() |
61 | 61 | { |
62 | - if (! $this->needsResolving) { |
|
62 | + if (!$this->needsResolving) { |
|
63 | 63 | Loop::defer(Closure::fromCallable([$this, 'resolve'])); |
64 | 64 | $this->needsResolving = true; |
65 | 65 | } |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | |
26 | 26 | try { |
27 | 27 | $result = null; |
28 | - Loop::run(function () use (&$result, $promise) { |
|
29 | - $result = yield call(function () use ($promise) { |
|
28 | + Loop::run(function() use (&$result, $promise) { |
|
29 | + $result = yield call(function() use ($promise) { |
|
30 | 30 | return $promise; |
31 | 31 | }); |
32 | 32 | }); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | return; |
40 | 40 | } |
41 | 41 | |
42 | - if (! is_null($expectedValue)) { |
|
42 | + if (!is_null($expectedValue)) { |
|
43 | 43 | $this->assertSame( |
44 | 44 | $expectedValue, |
45 | 45 | $result, |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $operationName, |
70 | 70 | [$this, 'resolveField'], |
71 | 71 | null // validationRules |
72 | - )->then(function ($value) use (&$result) { |
|
72 | + )->then(function($value) use (&$result) { |
|
73 | 73 | $result = $value; |
74 | 74 | }); |
75 | 75 | |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | ?? $this->fieldFromArray($source, $args, $context, $info) |
186 | 186 | ?? $this->fieldFromObject($source, $args, $context, $info); |
187 | 187 | |
188 | - return call(static function () use ($field, $source, $args, $context, $info) { |
|
188 | + return call(static function() use ($field, $source, $args, $context, $info) { |
|
189 | 189 | if (function_exists('enum_exists') && $field instanceof \BackedEnum) { |
190 | 190 | return $field->value; |
191 | 191 | } |
@@ -220,10 +220,10 @@ discard block |
||
220 | 220 | { |
221 | 221 | if (is_array($source) || $source instanceof \ArrayAccess) { |
222 | 222 | return collect($this->propertyNames($info)) |
223 | - ->map(function ($propertyName) use ($source) { |
|
223 | + ->map(function($propertyName) use ($source) { |
|
224 | 224 | return $source[$propertyName] ?? null; |
225 | 225 | }) |
226 | - ->reject(function ($value) { |
|
226 | + ->reject(function($value) { |
|
227 | 227 | return is_null($value); |
228 | 228 | }) |
229 | 229 | ->first(); |
@@ -234,10 +234,10 @@ discard block |
||
234 | 234 | { |
235 | 235 | if (is_object($source)) { |
236 | 236 | return collect($this->propertyNames($info)) |
237 | - ->map(function ($propertyName) use ($source) { |
|
237 | + ->map(function($propertyName) use ($source) { |
|
238 | 238 | return $source->{$propertyName} ?? null; |
239 | 239 | }) |
240 | - ->reject(function ($value) { |
|
240 | + ->reject(function($value) { |
|
241 | 241 | return is_null($value); |
242 | 242 | }) |
243 | 243 | ->first(); |