Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 179-181 (lines=3) @@
176
177
        $class->mapField($mapping);
178
179
        if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) {
180
            return;
181
        }
182
183
        // Multiple index specifications in one field mapping is ambiguous
184
        if ((isset($mapping['index']) && is_array($mapping['index'])) +