Code Duplication    Length = 3-3 lines in 2 locations

src/Graviton/DocumentBundle/DependencyInjection/Compiler/Utils/DocumentMap.php 2 locations

@@ 413-415 (lines=3) @@
410
        }
411
412
        $relations = [];
413
        if (isset($mapping['embed'.$suffix])) {
414
            $relations = array_merge($relations, $mapping['embed'.$suffix]);
415
        }
416
        if (isset($mapping['reference'.$suffix])) {
417
            $relations = array_merge($relations, $mapping['reference'.$suffix]);
418
        }
@@ 416-418 (lines=3) @@
413
        if (isset($mapping['embed'.$suffix])) {
414
            $relations = array_merge($relations, $mapping['embed'.$suffix]);
415
        }
416
        if (isset($mapping['reference'.$suffix])) {
417
            $relations = array_merge($relations, $mapping['reference'.$suffix]);
418
        }
419
420
        return array_map(
421
            function ($key, $value) {