Code Duplication    Length = 10-10 lines in 3 locations

src/CachedBuilder.php 3 locations

@@ 162-171 (lines=10) @@
159
    /**
160
     * @SuppressWarnings(PHPMD.ShortVariable)
161
     */
162
    public function find($id, $columns = ['*'])
163
    {
164
        $tags = $this->getCacheTags();
165
        $key = $this->getCacheKey($columns, $id);
166
167
        return $this->cache($tags)
168
            ->rememberForever($key, function () use ($id, $columns) {
169
                return parent::find($id, $columns);
170
            });
171
    }
172
173
    public function first($columns = ['*'])
174
    {
@@ 173-182 (lines=10) @@
170
            });
171
    }
172
173
    public function first($columns = ['*'])
174
    {
175
        $tags = $this->getCacheTags();
176
        $key = $this->getCacheKey($columns) . '-first';
177
178
        return $this->cache($tags)
179
            ->rememberForever($key, function () use ($columns) {
180
                return parent::first($columns);
181
            });
182
    }
183
184
    public function get($columns = ['*'])
185
    {
@@ 184-193 (lines=10) @@
181
            });
182
    }
183
184
    public function get($columns = ['*'])
185
    {
186
        $tags = $this->getCacheTags();
187
        $key = $this->getCacheKey($columns);
188
189
        return $this->cache($tags)
190
            ->rememberForever($key, function () use ($columns) {
191
                return parent::get($columns);
192
            });
193
    }
194
195
    public function max($column)
196
    {