Code Duplication    Length = 14-14 lines in 2 locations

src/Drivers/Predis.php 1 location

@@ 72-85 (lines=14) @@
69
     * @param  string      $id
70
     * @return mixed|false
71
     */
72
    protected function doLoad($id)
73
    {
74
        $source = $this->getOption('client')->get($id);
75
76
        if (false !== $source) {
77
            if (is_string($source) && !is_numeric($source)) {
78
                $source = $this->getSerializer()->unserialize($source);
79
            }
80
81
            return $this->getProcessedLoadedValue($source);
82
        }
83
84
        return false;
85
    }
86
87
    /**
88
     * {@inheritdoc}

src/Drivers/Redis.php 1 location

@@ 156-169 (lines=14) @@
153
     * @param  string      $id
154
     * @return mixed|false
155
     */
156
    protected function doLoad($id)
157
    {
158
        $source = $this->getConnection($id)->get($id);
159
160
        if (false !== $source) {
161
            if (is_string($source) && !is_numeric($source)) {
162
                $source = $this->getSerializer()->unserialize($source);
163
            }
164
165
            return $this->getProcessedLoadedValue($source);
166
        }
167
168
        return false;
169
    }
170
171
    /**
172
     * {@inheritdoc}