Code Duplication    Length = 7-7 lines in 3 locations

src/CachedBuilder.php 3 locations

@@ 184-190 (lines=7) @@
181
    /**
182
     * @SuppressWarnings(PHPMD.ShortVariable)
183
     */
184
    public function find($id, $columns = ['*'])
185
    {
186
        return $this->cache($this->getCacheTags())
187
            ->rememberForever($this->getCacheKey($columns, $id), function () use ($id, $columns) {
188
                return parent::find($id, $columns);
189
            });
190
    }
191
192
    public function first($columns = ['*'])
193
    {
@@ 192-198 (lines=7) @@
189
            });
190
    }
191
192
    public function first($columns = ['*'])
193
    {
194
        return $this->cache($this->getCacheTags())
195
            ->rememberForever($this->getCacheKey($columns) . '-first', function () use ($columns) {
196
                return parent::first($columns);
197
            });
198
    }
199
200
    public function get($columns = ['*'])
201
    {
@@ 200-206 (lines=7) @@
197
            });
198
    }
199
200
    public function get($columns = ['*'])
201
    {
202
        return $this->cache($this->getCacheTags())
203
            ->rememberForever($this->getCacheKey($columns), function () use ($columns) {
204
                return parent::get($columns);
205
            });
206
    }
207
208
    public function max($column)
209
    {