Code Duplication    Length = 11-11 lines in 2 locations

src/Execution/Processor.php 2 locations

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