Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1181-1183 (lines=3) @@
1178
        if (isset($mapping['reference']) && $mapping['type'] === 'many') {
1179
            $mapping['association'] = self::REFERENCE_MANY;
1180
        }
1181
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1182
            $mapping['association'] = self::EMBED_ONE;
1183
        }
1184
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1185
            $mapping['association'] = self::EMBED_MANY;
1186
        }
@@ 1184-1186 (lines=3) @@
1181
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1182
            $mapping['association'] = self::EMBED_ONE;
1183
        }
1184
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1185
            $mapping['association'] = self::EMBED_MANY;
1186
        }
1187
1188
        if (isset($mapping['association']) && ! isset($mapping['targetDocument']) && ! isset($mapping['discriminatorField'])) {
1189
            $mapping['discriminatorField'] = self::DEFAULT_DISCRIMINATOR_FIELD;