Code Duplication    Length = 9-9 lines in 2 locations

src/RedisProxy.php 2 locations

@@ 212-220 (lines=9) @@
209
     * @param string $key
210
     * @return string
211
     */
212
    public function get($key)
213
    {
214
        $this->init();
215
        $result = $this->driver->get($key);
216
        if ($this->driver instanceof Client) {
217
            $result = $result === null ? false : $result;
218
        }
219
        return $result;
220
    }
221
222
    public function del(...$key)
223
    {
@@ 244-252 (lines=9) @@
241
        return $this->driver->scan($iterator, $pattern, $count);
242
    }
243
244
    public function hget($key, $field)
245
    {
246
        $this->init();
247
        $result = $this->driver->hget($key, $field);
248
        if ($this->driver instanceof Client) {
249
            $result = $result === null ? false : $result;
250
        }
251
        return $result;
252
    }
253
254
    public function hscan($key, &$iterator, $pattern = null, $count = null)
255
    {