Code Duplication    Length = 11-11 lines in 2 locations

src/Execution/Processor.php 2 locations

@@ 358-368 (lines=11) @@
355
                    $astName  = $astField->getTypeName();
356
                    $typeName = $type->getName();
357
358
                    if ($typeName !== $astName) {
359
                        foreach ($type->getInterfaces() as $interface) {
360
                            if ($interface->getName() === $astName) {
361
                                $result = array_replace_recursive($result, $this->collectResult($field, $type, $astField, $resolvedValue));
362
363
                                break;
364
                            }
365
                        }
366
367
                        continue 2;
368
                    }
369
370
                    $result = array_replace_recursive($result, $this->collectResult($field, $type, $astField, $resolvedValue));
371
@@ 379-389 (lines=11) @@
376
                    $astFragmentModel = $astFragment->getModel();
377
                    $typeName         = $type->getName();
378
379
                    if ($typeName !== $astFragmentModel && $type->getInterfaces()) {
380
                        foreach ($type->getInterfaces() as $interface) {
381
                            if ($interface->getName() === $astFragmentModel) {
382
                                $result = array_replace_recursive($result, $this->collectResult($field, $type, $astFragment, $resolvedValue));
383
384
                                break;
385
                            }
386
                        }
387
388
                        continue 2;
389
                    }
390
391
                    $result = array_replace_recursive($result, $this->collectResult($field, $type, $astFragment, $resolvedValue));
392