Code Duplication    Length = 8-8 lines in 2 locations

src/RedisProxy.php 2 locations

@@ 739-746 (lines=8) @@
736
     * @param boolean $withscores
737
     * @return array
738
     */
739
    public function zrange($key, $start, $stop, $withscores = false)
740
    {
741
        $this->init();
742
        if ($this->actualDriver() === self::DRIVER_PREDIS) {
743
            return $this->driver->zrange($key, $start, $stop, ['WITHSCORES' => $withscores]);
744
        }
745
        return $this->driver->zrange($key, $start, $stop, $withscores);
746
    }
747
748
    /**
749
     * Return a range of members in a sorted set, by index, with scores ordered from high to low
@@ 756-763 (lines=8) @@
753
     * @param boolean $withscores
754
     * @return array
755
     */
756
    public function zrevrange($key, $start, $stop, $withscores = false)
757
    {
758
        $this->init();
759
        if ($this->actualDriver() === self::DRIVER_PREDIS) {
760
            return $this->driver->zrevrange($key, $start, $stop, ['WITHSCORES' => $withscores]);
761
        }
762
        return $this->driver->zrevrange($key, $start, $stop, $withscores);
763
    }
764
765
    /**
766
     * Returns null instead of false for Redis driver