Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1174-1176 (lines=3) @@
1171
        if (isset($mapping['reference']) && $mapping['type'] === 'many') {
1172
            $mapping['association'] = self::REFERENCE_MANY;
1173
        }
1174
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1175
            $mapping['association'] = self::EMBED_ONE;
1176
        }
1177
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1178
            $mapping['association'] = self::EMBED_MANY;
1179
        }
@@ 1177-1179 (lines=3) @@
1174
        if (isset($mapping['embedded']) && $mapping['type'] === 'one') {
1175
            $mapping['association'] = self::EMBED_ONE;
1176
        }
1177
        if (isset($mapping['embedded']) && $mapping['type'] === 'many') {
1178
            $mapping['association'] = self::EMBED_MANY;
1179
        }
1180
1181
        if (isset($mapping['association']) && ! isset($mapping['targetDocument']) && ! isset($mapping['discriminatorField'])) {
1182
            $mapping['discriminatorField'] = self::DEFAULT_DISCRIMINATOR_FIELD;