Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php 1 location

@@ 212-214 (lines=3) @@
209
        $class->mapField($mapping);
210
211
        // Index this field if either "index", "unique", or "sparse" are set
212
        if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) {
213
            return;
214
        }
215
216
        $keys = array($name => isset($mapping['order']) ? $mapping['order'] : 'asc');
217
        $options = array();

lib/Doctrine/ODM/MongoDB/Mapping/Driver/YamlDriver.php 1 location

@@ 172-174 (lines=3) @@
169
170
        $class->mapField($mapping);
171
172
        if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) {
173
            return;
174
        }
175
176
        // Multiple index specifications in one field mapping is ambiguous
177
        if ((isset($mapping['index']) && is_array($mapping['index'])) +