Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php 2 locations

@@ 462-464 (lines=3) @@
459
460
        $keys = array();
461
        $options = array();
462
        foreach ($xmlShardkey->{'key'} as $key) {
463
            $keys[(string) $key['name']] = isset($key['order']) ? (string)$key['order'] : 'asc';
464
        }
465
466
        if (isset($attributes['unique'])) {
467
            $options['unique'] = ('true' === (string) $attributes['unique']);
@@ 357-359 (lines=3) @@
354
355
        $keys = array();
356
357
        foreach ($xmlIndex->{'key'} as $key) {
358
            $keys[(string) $key['name']] = isset($key['order']) ? (string) $key['order'] : 'asc';
359
        }
360
361
        $options = array();
362