mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 06:16:05 +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 {
|
} 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;
|
||||||
|
@ -178,7 +178,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user