Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1205-1207 (lines=3) @@
1202
        if (isset($mapping['reference']) && $mapping['type'] === 'many') {
1203
            $mapping['association'] = self::REFERENCE_MANY;
1204
        }
1205
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1206
            $mapping['association'] = self::EMBED_ONE;
1207
        }
1208
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1209
            $mapping['association'] = self::EMBED_MANY;
1210
        }
@@ 1208-1210 (lines=3) @@
1205
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1206
            $mapping['association'] = self::EMBED_ONE;
1207
        }
1208
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1209
            $mapping['association'] = self::EMBED_MANY;
1210
        }
1211
1212
        if (isset($mapping['association']) && ! isset($mapping['targetDocument']) && ! isset($mapping['discriminatorField'])) {
1213
            $mapping['discriminatorField'] = self::DEFAULT_DISCRIMINATOR_FIELD;