Split some long lines into multiples

This commit is contained in:
spawnia 2019-06-23 20:36:30 +02:00
parent 93ccd7351d
commit e704f8cc5c
2 changed files with 8 additions and 2 deletions

View File

@ -821,7 +821,10 @@ class CoroutineExecutor implements Runtime, ExecutorImplementation
} else { } else {
$childContexts = []; $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 */ /** @var CoroutineContextShared $childShared */
$childPath = $path; $childPath = $path;

View File

@ -177,7 +177,10 @@ class ResolveInfo
/** @var FieldNode $fieldNode */ /** @var FieldNode $fieldNode */
foreach ($this->fieldNodes as $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; return $fields;