mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-24 22:06:04 +03:00
Merge pull request #510 from spawnia/split-into-multiline
Split some long lines into multiples
This commit is contained in:
commit
f7443b6f0c
@ -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;
|
||||
|
@ -178,7 +178,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;
|
||||
|
Loading…
Reference in New Issue
Block a user