Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1297-1299 (lines=3) @@
1294
        if (isset($mapping['reference']) && $mapping['type'] === 'many') {
1295
            $mapping['association'] = self::REFERENCE_MANY;
1296
        }
1297
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1298
            $mapping['association'] = self::EMBED_ONE;
1299
        }
1300
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1301
            $mapping['association'] = self::EMBED_MANY;
1302
        }
@@ 1300-1302 (lines=3) @@
1297
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1298
            $mapping['association'] = self::EMBED_ONE;
1299
        }
1300
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1301
            $mapping['association'] = self::EMBED_MANY;
1302
        }
1303
1304
        if (isset($mapping['association']) && ! isset($mapping['targetDocument']) && ! isset($mapping['discriminatorField'])) {
1305
            $mapping['discriminatorField'] = self::DEFAULT_DISCRIMINATOR_FIELD;