Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1380-1382 (lines=3) @@
1377
        if (isset($mapping['reference']) && $mapping['type'] === 'many') {
1378
            $mapping['association'] = self::REFERENCE_MANY;
1379
        }
1380
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1381
            $mapping['association'] = self::EMBED_ONE;
1382
        }
1383
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1384
            $mapping['association'] = self::EMBED_MANY;
1385
        }
@@ 1383-1385 (lines=3) @@
1380
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1381
            $mapping['association'] = self::EMBED_ONE;
1382
        }
1383
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1384
            $mapping['association'] = self::EMBED_MANY;
1385
        }
1386
1387
        if (isset($mapping['association']) && ! isset($mapping['targetDocument']) && ! isset($mapping['discriminatorField'])) {
1388
            $mapping['discriminatorField'] = self::DEFAULT_DISCRIMINATOR_FIELD;