Skip to content

Commit ee0b047

Browse files
committed
Remove unused variable
1 parent d8b8492 commit ee0b047

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/CachedBuilder.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ class CachedBuilder extends EloquentBuilder
99

1010
public function avg($column)
1111
{
12-
return $this->cache($this->makeCacheTags($this))
12+
return $this->cache($this->makeCacheTags())
1313
->rememberForever($this->makeCacheKey() . "-avg_{$column}", function () use ($column) {
1414
return parent::avg($column);
1515
});
1616
}
1717

1818
public function count($columns = ['*'])
1919
{
20-
return $this->cache($this->makeCacheTags($this))
20+
return $this->cache($this->makeCacheTags())
2121
->rememberForever($this->makeCacheKey() . "-count", function () use ($columns) {
2222
return parent::count($columns);
2323
});
2424
}
2525

2626
public function cursor()
2727
{
28-
return $this->cache($this->makeCacheTags($this))
28+
return $this->cache($this->makeCacheTags())
2929
->rememberForever($this->makeCacheKey() . "-cursor", function () {
3030
return collect(parent::cursor());
3131
});
@@ -36,39 +36,39 @@ public function cursor()
3636
*/
3737
public function find($id, $columns = ['*'])
3838
{
39-
return $this->cache($this->makeCacheTags($this))
39+
return $this->cache($this->makeCacheTags())
4040
->rememberForever($this->makeCacheKey($columns, $id), function () use ($id, $columns) {
4141
return parent::find($id, $columns);
4242
});
4343
}
4444

4545
public function first($columns = ['*'])
4646
{
47-
return $this->cache($this->makeCacheTags($this))
47+
return $this->cache($this->makeCacheTags())
4848
->rememberForever($this->makeCacheKey($columns) . '-first', function () use ($columns) {
4949
return parent::first($columns);
5050
});
5151
}
5252

5353
public function get($columns = ['*'])
5454
{
55-
return $this->cache($this->makeCacheTags($this))
55+
return $this->cache($this->makeCacheTags())
5656
->rememberForever($this->makeCacheKey($columns), function () use ($columns) {
5757
return parent::get($columns);
5858
});
5959
}
6060

6161
public function max($column)
6262
{
63-
return $this->cache($this->makeCacheTags($this))
63+
return $this->cache($this->makeCacheTags())
6464
->rememberForever($this->makeCacheKey() . "-max_{$column}", function () use ($column) {
6565
return parent::max($column);
6666
});
6767
}
6868

6969
public function min($column)
7070
{
71-
return $this->cache($this->makeCacheTags($this))
71+
return $this->cache($this->makeCacheTags())
7272
->rememberForever($this->makeCacheKey() . "-min_{$column}", function () use ($column) {
7373
return parent::min($column);
7474
});
@@ -82,15 +82,15 @@ public function pluck($column, $key = null)
8282
$cacheKey .= "_{$key}";
8383
}
8484

85-
return $this->cache($this->makeCacheTags($this))
85+
return $this->cache($this->makeCacheTags())
8686
->rememberForever($cacheKey, function () use ($column, $key) {
8787
return parent::pluck($column, $key);
8888
});
8989
}
9090

9191
public function sum($column)
9292
{
93-
return $this->cache($this->makeCacheTags($this))
93+
return $this->cache($this->makeCacheTags())
9494
->rememberForever($this->makeCacheKey() . "-sum_{$column}", function () use ($column) {
9595
return parent::sum($column);
9696
});

0 commit comments

Comments
 (0)