Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1328-1330 (lines=3) @@
1325
        if (isset($mapping['reference']) && $mapping['type'] === 'many') {
1326
            $mapping['association'] = self::REFERENCE_MANY;
1327
        }
1328
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1329
            $mapping['association'] = self::EMBED_ONE;
1330
        }
1331
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1332
            $mapping['association'] = self::EMBED_MANY;
1333
        }
@@ 1331-1333 (lines=3) @@
1328
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1329
            $mapping['association'] = self::EMBED_ONE;
1330
        }
1331
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1332
            $mapping['association'] = self::EMBED_MANY;
1333
        }
1334
1335
        if (isset($mapping['association']) && ! isset($mapping['targetDocument']) && ! isset($mapping['discriminatorField'])) {
1336
            $mapping['discriminatorField'] = self::DEFAULT_DISCRIMINATOR_FIELD;