mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 04:46:04 +03:00
Split some long lines into multiples
This commit is contained in:
parent
93ccd7351d
commit
e704f8cc5c
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user