Passed
Push — master ( eaeb54...0cf254 )
by Markus
13:28
created
src/DataLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/Concerns/AssertsPromises.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Concerns/HandlesGraphqlRequests.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -346,11 +346,11 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.