Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 229-231 (lines=3) @@
226
        $class->mapField($mapping);
227
228
        // Index this field if either "index", "unique", or "sparse" are set
229
        if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) {
230
            return;
231
        }
232
233
        $keys = array($name => isset($mapping['order']) ? $mapping['order'] : 'asc');
234
        $options = array();

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

@@ 185-187 (lines=3) @@
182
183
        $class->mapField($mapping);
184
185
        if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) {
186
            return;
187
        }
188
189
        // Multiple index specifications in one field mapping is ambiguous
190
        if ((isset($mapping['index']) && is_array($mapping['index'])) +