Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1219-1221 (lines=3) @@
1216
        if (isset($mapping['reference']) && $mapping['type'] === 'many') {
1217
            $mapping['association'] = self::REFERENCE_MANY;
1218
        }
1219
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1220
            $mapping['association'] = self::EMBED_ONE;
1221
        }
1222
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1223
            $mapping['association'] = self::EMBED_MANY;
1224
        }
@@ 1222-1224 (lines=3) @@
1219
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1220
            $mapping['association'] = self::EMBED_ONE;
1221
        }
1222
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1223
            $mapping['association'] = self::EMBED_MANY;
1224
        }
1225
1226
        if (isset($mapping['association']) && ! isset($mapping['targetDocument']) && ! isset($mapping['discriminatorField'])) {
1227
            $mapping['discriminatorField'] = self::DEFAULT_DISCRIMINATOR_FIELD;