Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataInfo.php 2 locations

@@ 1410-1412 (lines=3) @@
1407
        if (isset($mapping['reference']) && $mapping['type'] === 'many') {
1408
            $mapping['association'] = self::REFERENCE_MANY;
1409
        }
1410
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1411
            $mapping['association'] = self::EMBED_ONE;
1412
        }
1413
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1414
            $mapping['association'] = self::EMBED_MANY;
1415
        }
@@ 1413-1415 (lines=3) @@
1410
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1411
            $mapping['association'] = self::EMBED_ONE;
1412
        }
1413
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1414
            $mapping['association'] = self::EMBED_MANY;
1415
        }
1416
1417
        if (isset($mapping['association']) && ! isset($mapping['targetDocument']) && ! isset($mapping['discriminatorField'])) {
1418
            $mapping['discriminatorField'] = self::DEFAULT_DISCRIMINATOR_FIELD;