Code Duplication    Length = 12-13 lines in 2 locations

src/Execution/Processor.php 2 locations

@@ 338-349 (lines=12) @@
335
                    $astName  = $astField->getTypeName();
336
                    $typeName = $type->getName();
337
338
                    if ($typeName !== $astName) {
339
                        $interfaces = $type->getInterfaces();
340
                        foreach ($interfaces as $interface) {
341
                            if ($interface->getName() === $astName) {
342
                                $result = array_replace_recursive($result, $this->collectResult($field, $type, $astField, $resolvedValue));
343
344
                                break;
345
                            }
346
                        }
347
348
                        continue;
349
                    }
350
351
                    $result = array_replace_recursive($result, $this->collectResult($field, $type, $astField, $resolvedValue));
352
@@ 360-372 (lines=13) @@
357
                    $astFragmentModel = $astFragment->getModel();
358
                    $typeName         = $type->getName();
359
360
                    if ($typeName !== $astFragmentModel) {
361
                        $interfaces = $type->getInterfaces();
362
                        foreach ($interfaces as $interface) {
363
                            if ($interface->getName() === $astFragmentModel) {
364
                                $result = array_replace_recursive($result, $this->collectResult($field, $type, $astFragment, $resolvedValue));
365
366
                                break;
367
                            }
368
369
                        }
370
371
                        continue;
372
                    }
373
374
                    $result = array_replace_recursive($result, $this->collectResult($field, $type, $astFragment, $resolvedValue));
375