Code Duplication    Length = 3-3 lines in 2 locations

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

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