Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

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