Code Duplication    Length = 3-3 lines in 2 locations

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

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