Code Duplication    Length = 8-8 lines in 2 locations

src/RedisProxy.php 2 locations

@@ 786-793 (lines=8) @@
783
     * @param boolean $withscores
784
     * @return array
785
     */
786
    public function zrange($key, $start, $stop, $withscores = false)
787
    {
788
        $this->init();
789
        if ($this->actualDriver() === self::DRIVER_PREDIS) {
790
            return $this->driver->zrange($key, $start, $stop, ['WITHSCORES' => $withscores]);
791
        }
792
        return $this->driver->zrange($key, $start, $stop, $withscores);
793
    }
794
795
    /**
796
     * Incrementally iterate Sorted set elements
@@ 825-832 (lines=8) @@
822
     * @param boolean $withscores
823
     * @return array
824
     */
825
    public function zrevrange($key, $start, $stop, $withscores = false)
826
    {
827
        $this->init();
828
        if ($this->actualDriver() === self::DRIVER_PREDIS) {
829
            return $this->driver->zrevrange($key, $start, $stop, ['WITHSCORES' => $withscores]);
830
        }
831
        return $this->driver->zrevrange($key, $start, $stop, $withscores);
832
    }
833
834
    /**
835
     * Returns null instead of false for Redis driver