From e704f8cc5c15c9f87d494efa352d20686cb966c6 Mon Sep 17 00:00:00 2001 From: spawnia Date: Sun, 23 Jun 2019 20:36:30 +0200 Subject: [PATCH] Split some long lines into multiples --- src/Experimental/Executor/CoroutineExecutor.php | 5 ++++- src/Type/Definition/ResolveInfo.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Experimental/Executor/CoroutineExecutor.php b/src/Experimental/Executor/CoroutineExecutor.php index 3aba3e2..f823aea 100644 --- a/src/Experimental/Executor/CoroutineExecutor.php +++ b/src/Experimental/Executor/CoroutineExecutor.php @@ -821,7 +821,10 @@ class CoroutineExecutor implements Runtime, ExecutorImplementation } else { $childContexts = []; - foreach ($this->collector->collectFields($objectType, $ctx->shared->mergedSelectionSet ?? $this->mergeSelectionSets($ctx)) as $childShared) { + foreach ($this->collector->collectFields( + $objectType, + $ctx->shared->mergedSelectionSet ?? $this->mergeSelectionSets($ctx) + ) as $childShared) { /** @var CoroutineContextShared $childShared */ $childPath = $path; diff --git a/src/Type/Definition/ResolveInfo.php b/src/Type/Definition/ResolveInfo.php index f2525de..ee2aa7b 100644 --- a/src/Type/Definition/ResolveInfo.php +++ b/src/Type/Definition/ResolveInfo.php @@ -177,7 +177,10 @@ class ResolveInfo /** @var FieldNode $fieldNode */ foreach ($this->fieldNodes as $fieldNode) { - $fields = array_merge_recursive($fields, $this->foldSelectionSet($fieldNode->selectionSet, $depth)); + $fields = array_merge_recursive( + $fields, + $this->foldSelectionSet($fieldNode->selectionSet, $depth) + ); } return $fields;