Completed
Push — master ( dcf687...6a9361 )
by Alexandr
05:22 queued 02:31
created
src/Execution/Processor.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -93,15 +93,15 @@  discard block
 block discarded – undo
93 93
 
94 94
             // If the processor found any deferred results, resolve them now.
95 95
             if (!empty($this->data) && $this->deferredResults) {
96
-              try {
97
-                  while ($deferredResolver = array_shift($this->deferredResults)) {
98
-                      $deferredResolver->resolve();
99
-                  }
100
-              } catch (\Exception $e) {
101
-                  $this->executionContext->addError($e);
102
-              } finally {
103
-                  $this->data = static::unpackDeferredResults($this->data);
104
-              }
96
+                try {
97
+                    while ($deferredResolver = array_shift($this->deferredResults)) {
98
+                        $deferredResolver->resolve();
99
+                    }
100
+                } catch (\Exception $e) {
101
+                    $this->executionContext->addError($e);
102
+                } finally {
103
+                    $this->data = static::unpackDeferredResults($this->data);
104
+                }
105 105
             }
106 106
 
107 107
         } catch (\Exception $e) {
@@ -429,9 +429,9 @@  discard block
 block discarded – undo
429 429
             }
430 430
 
431 431
             $fakeField = new Field([
432
-              'name' => $field->getName(),
433
-              'type' => $itemType,
434
-              'args' => $field->getArguments(),
432
+                'name' => $field->getName(),
433
+                'type' => $itemType,
434
+                'args' => $field->getArguments(),
435 435
             ]);
436 436
 
437 437
             $result = [];
@@ -514,9 +514,9 @@  discard block
 block discarded – undo
514 514
             /** @var AbstractUnionType $type */
515 515
             $type         = $field->getType()->getNullableType();
516 516
             $resolveInfo = new ResolveInfo(
517
-              $field,
518
-              $ast instanceof AstQuery ? $ast->getFields() : [],
519
-              $this->executionContext
517
+                $field,
518
+                $ast instanceof AstQuery ? $ast->getFields() : [],
519
+                $this->executionContext
520 520
             );
521 521
             $resolvedType = $type->resolveType($resolvedValue, $resolveInfo);
522 522
 
@@ -531,9 +531,9 @@  discard block
 block discarded – undo
531 531
             }
532 532
 
533 533
             $fakeField = new Field([
534
-              'name' => $field->getName(),
535
-              'type' => $resolvedType,
536
-              'args' => $field->getArguments(),
534
+                'name' => $field->getName(),
535
+                'type' => $resolvedType,
536
+                'args' => $field->getArguments(),
537 537
             ]);
538 538
 
539 539
             return $this->resolveObject($fakeField, $ast, $resolvedValue, true);
Please login to merge, or discard this patch.