mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-21 20:36:05 +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 {
|
||||
$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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user