Code Duplication    Length = 8-8 lines in 2 locations

src/RedisProxy.php 2 locations

@@ 799-806 (lines=8) @@
796
     * @param boolean $withscores
797
     * @return array
798
     */
799
    public function zrange($key, $start, $stop, $withscores = false)
800
    {
801
        $this->init();
802
        if ($this->actualDriver() === self::DRIVER_PREDIS) {
803
            return $this->driver->zrange($key, $start, $stop, ['WITHSCORES' => $withscores]);
804
        }
805
        return $this->driver->zrange($key, $start, $stop, $withscores);
806
    }
807
808
    /**
809
     * Incrementally iterate Sorted set elements
@@ 838-845 (lines=8) @@
835
     * @param boolean $withscores
836
     * @return array
837
     */
838
    public function zrevrange($key, $start, $stop, $withscores = false)
839
    {
840
        $this->init();
841
        if ($this->actualDriver() === self::DRIVER_PREDIS) {
842
            return $this->driver->zrevrange($key, $start, $stop, ['WITHSCORES' => $withscores]);
843
        }
844
        return $this->driver->zrevrange($key, $start, $stop, $withscores);
845
    }
846
847
    /**
848
     * Returns the rank of member in the sorted set stored at key, with the scores ordered from low to high. The rank (or index) is 0-based, which means that the member with the lowest score has rank 0