Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1191-1193 (lines=3) @@
1188
        if (isset($mapping['reference']) && $mapping['type'] === 'many') {
1189
            $mapping['association'] = self::REFERENCE_MANY;
1190
        }
1191
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1192
            $mapping['association'] = self::EMBED_ONE;
1193
        }
1194
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1195
            $mapping['association'] = self::EMBED_MANY;
1196
        }
@@ 1194-1196 (lines=3) @@
1191
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1192
            $mapping['association'] = self::EMBED_ONE;
1193
        }
1194
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1195
            $mapping['association'] = self::EMBED_MANY;
1196
        }
1197
1198
        if (isset($mapping['association']) && ! isset($mapping['targetDocument']) && ! isset($mapping['discriminatorField'])) {
1199
            $mapping['discriminatorField'] = self::DEFAULT_DISCRIMINATOR_FIELD;