Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

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