Code Duplication    Length = 9-9 lines in 2 locations

src/Redis/PHPRedis/PHPRedisAdapter.php 1 location

@@ 90-98 (lines=9) @@
87
        }
88
    }
89
90
    public function zScore(string $key, string $value)
91
    {
92
        try {
93
            $score = $this->redis->zScore($key, $value);
94
        } catch (\RedisException $e) {
95
            throw new RedisException();
96
        }
97
        return $score === null ? $score : intval($score);
98
    }
99
100
    public function del(string $key)
101
    {

src/Redis/Predis/PredisAdapter.php 1 location

@@ 92-100 (lines=9) @@
89
        }
90
    }
91
92
    public function zScore(string $key, string $value)
93
    {
94
        try {
95
            $score = $this->client->zscore($key, $value);
96
        } catch (PredisConnectionException $e) {
97
            throw new RedisException();
98
        }
99
        return $score === null ? $score : intval($score);
100
    }
101
102
    public function del(string $key)
103
    {