Code Duplication    Length = 11-11 lines in 2 locations

src/Execution/Processor.php 2 locations

@@ 346-356 (lines=11) @@
343
                    $astName  = $astField->getTypeName();
344
                    $typeName = $type->getName();
345
346
                    if ($typeName !== $astName) {
347
                        foreach ($type->getInterfaces() as $interface) {
348
                            if ($interface->getName() === $astName) {
349
                                $result = array_replace_recursive($result, $this->collectResult($field, $type, $astField, $resolvedValue));
350
351
                                break;
352
                            }
353
                        }
354
355
                        continue 2;
356
                    }
357
358
                    $result = array_replace_recursive($result, $this->collectResult($field, $type, $astField, $resolvedValue));
359
@@ 367-377 (lines=11) @@
364
                    $astFragmentModel = $astFragment->getModel();
365
                    $typeName         = $type->getName();
366
367
                    if ($typeName !== $astFragmentModel && $type->getInterfaces()) {
368
                        foreach ($type->getInterfaces() as $interface) {
369
                            if ($interface->getName() === $astFragmentModel) {
370
                                $result = array_replace_recursive($result, $this->collectResult($field, $type, $astFragment, $resolvedValue));
371
372
                                break;
373
                            }
374
                        }
375
376
                        continue 2;
377
                    }
378
379
                    $result = array_replace_recursive($result, $this->collectResult($field, $type, $astFragment, $resolvedValue));
380