Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1346-1348 (lines=3) @@
1343
        if (isset($mapping['reference']) && $mapping['type'] === 'many') {
1344
            $mapping['association'] = self::REFERENCE_MANY;
1345
        }
1346
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1347
            $mapping['association'] = self::EMBED_ONE;
1348
        }
1349
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1350
            $mapping['association'] = self::EMBED_MANY;
1351
        }
@@ 1349-1351 (lines=3) @@
1346
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1347
            $mapping['association'] = self::EMBED_ONE;
1348
        }
1349
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1350
            $mapping['association'] = self::EMBED_MANY;
1351
        }
1352
1353
        if (isset($mapping['association']) && ! isset($mapping['targetDocument']) && ! isset($mapping['discriminatorField'])) {
1354
            $mapping['discriminatorField'] = self::DEFAULT_DISCRIMINATOR_FIELD;