Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

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