Code Duplication    Length = 9-9 lines in 2 locations

src/Execution/Processor.php 2 locations

@@ 509-517 (lines=9) @@
506
                    $fieldType = $currentLevelAST->getType()->getNamedType();
507
                    if ($fieldType instanceof AbstractUnionType) {
508
                        foreach ($fieldType->getTypes() as $unionFieldType) {
509
                            if ($fieldAst = $unionFieldType->getField($queryField->getName())) {
510
                                $gen  = $this->walkQuery($queryField, $fieldAst);
511
                                $next = $gen->current();
512
                                while ($next) {
513
                                    $received = (yield $next);
514
                                    $childrenScore += (int)$received;
515
                                    $next = $gen->send($received);
516
                                }
517
                            }
518
                        }
519
                    } elseif ($fieldType instanceof AbstractObjectType && $fieldAst = $fieldType->getField($queryField->getName())) {
520
                        $gen  = $this->walkQuery($queryField, $fieldAst);
@@ 519-527 (lines=9) @@
516
                                }
517
                            }
518
                        }
519
                    } elseif ($fieldType instanceof AbstractObjectType && $fieldAst = $fieldType->getField($queryField->getName())) {
520
                        $gen  = $this->walkQuery($queryField, $fieldAst);
521
                        $next = $gen->current();
522
                        while ($next) {
523
                            $received = (yield $next);
524
                            $childrenScore += (int)$received;
525
                            $next = $gen->send($received);
526
                        }
527
                    }
528
                }
529
            }
530
        }