Code Duplication    Length = 3-3 lines in 2 locations

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

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