Code Duplication    Length = 9-9 lines in 2 locations

src/RedisProxy.php 2 locations

@@ 122-130 (lines=9) @@
119
     * @param string $key
120
     * @return string
121
     */
122
    public function get($key)
123
    {
124
        $this->init();
125
        $result = $this->driver->get($key);
126
        if ($this->driver instanceof Client) {
127
            $result = $result === null ? false : $result;
128
        }
129
        return $result;
130
    }
131
132
    /**
133
     * @param string $key
@@ 169-177 (lines=9) @@
166
        return $this->driver->scan($iterator, $pattern, $count);
167
    }
168
169
    public function hget($key, $field)
170
    {
171
        $this->init();
172
        $result = $this->driver->hget($key, $field);
173
        if ($this->driver instanceof Client) {
174
            $result = $result === null ? false : $result;
175
        }
176
        return $result;
177
    }
178
179
    public function hscan($key, &$iterator, $pattern = null, $count = null)
180
    {