Code Duplication    Length = 3-3 lines in 2 locations

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

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