Code Duplication    Length = 8-8 lines in 2 locations

src/SortedSetBehavior.php 2 locations

@@ 35-42 (lines=8) @@
32
     * @param boolean $withscores
33
     * @return array
34
     */
35
    public function zrange($key, $start, $stop, $withscores = false)
36
    {
37
        $this->init();
38
        if ($this->actualDriver() === self::DRIVER_PREDIS) {
39
            return $this->driver->zrange($key, $start, $stop, ['WITHSCORES' => $withscores]);
40
        }
41
        return $this->driver->zrange($key, $start, $stop, $withscores);
42
    }
43
44
    /**
45
     * Return a range of members in a sorted set, by index, with scores ordered from high to low
@@ 52-59 (lines=8) @@
49
     * @param boolean $withscores
50
     * @return array
51
     */
52
    public function zrevrange($key, $start, $stop, $withscores = false)
53
    {
54
        $this->init();
55
        if ($this->actualDriver() === self::DRIVER_PREDIS) {
56
            return $this->driver->zrevrange($key, $start, $stop, ['WITHSCORES' => $withscores]);
57
        }
58
        return $this->driver->zrevrange($key, $start, $stop, $withscores);
59
    }
60
}
61