@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | public function avg($column) |
| 14 | 14 | { |
| 15 | - if (! $this->isCachable()) { |
|
| 15 | + if (!$this->isCachable()) { |
|
| 16 | 16 | return parent::avg($column); |
| 17 | 17 | } |
| 18 | 18 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | public function count($columns = ["*"]) |
| 25 | 25 | { |
| 26 | - if (! $this->isCachable()) { |
|
| 26 | + if (!$this->isCachable()) { |
|
| 27 | 27 | return parent::count($columns); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | public function cursor() |
| 36 | 36 | { |
| 37 | - if (! $this->isCachable()) { |
|
| 37 | + if (!$this->isCachable()) { |
|
| 38 | 38 | return collect(parent::cursor()); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function find($id, $columns = ["*"]) |
| 58 | 58 | { |
| 59 | - if (! $this->isCachable()) { |
|
| 59 | + if (!$this->isCachable()) { |
|
| 60 | 60 | return parent::find($id, $columns); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | public function first($columns = ["*"]) |
| 69 | 69 | { |
| 70 | - if (! $this->isCachable()) { |
|
| 70 | + if (!$this->isCachable()) { |
|
| 71 | 71 | return parent::first($columns); |
| 72 | 72 | } |
| 73 | 73 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | public function get($columns = ["*"]) |
| 80 | 80 | { |
| 81 | - if (! $this->isCachable()) { |
|
| 81 | + if (!$this->isCachable()) { |
|
| 82 | 82 | return parent::get($columns); |
| 83 | 83 | } |
| 84 | 84 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | public function max($column) |
| 91 | 91 | { |
| 92 | - if (! $this->isCachable()) { |
|
| 92 | + if (!$this->isCachable()) { |
|
| 93 | 93 | return parent::max($column); |
| 94 | 94 | } |
| 95 | 95 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | public function min($column) |
| 102 | 102 | { |
| 103 | - if (! $this->isCachable()) { |
|
| 103 | + if (!$this->isCachable()) { |
|
| 104 | 104 | return parent::min($column); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $pageName = "page", |
| 116 | 116 | $page = null |
| 117 | 117 | ) { |
| 118 | - if (! $this->isCachable()) { |
|
| 118 | + if (!$this->isCachable()) { |
|
| 119 | 119 | return parent::paginate($perPage, $columns, $pageName, $page); |
| 120 | 120 | } |
| 121 | 121 | |
@@ -127,11 +127,11 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | public function pluck($column, $key = null) |
| 129 | 129 | { |
| 130 | - if (! $this->isCachable()) { |
|
| 130 | + if (!$this->isCachable()) { |
|
| 131 | 131 | return parent::pluck($column, $key); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | - $keyDifferentiator = "-pluck_{$column}" . ($key ? "_{$key}" : ""); |
|
| 134 | + $keyDifferentiator = "-pluck_{$column}".($key ? "_{$key}" : ""); |
|
| 135 | 135 | $cacheKey = $this->makeCacheKey([$column], null, $keyDifferentiator); |
| 136 | 136 | |
| 137 | 137 | return $this->cachedValue(func_get_args(), $cacheKey); |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | public function sum($column) |
| 141 | 141 | { |
| 142 | - if (! $this->isCachable()) { |
|
| 142 | + if (!$this->isCachable()) { |
|
| 143 | 143 | return parent::sum($column); |
| 144 | 144 | } |
| 145 | 145 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | |
| 151 | 151 | public function value($column) |
| 152 | 152 | { |
| 153 | - if (! $this->isCachable()) { |
|
| 153 | + if (!$this->isCachable()) { |
|
| 154 | 154 | return parent::value($column); |
| 155 | 155 | } |
| 156 | 156 | |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | return $this->cache($cacheTags) |
| 220 | 220 | ->rememberForever( |
| 221 | 221 | $hashedCacheKey, |
| 222 | - function () use ($arguments, $cacheKey, $method) { |
|
| 222 | + function() use ($arguments, $cacheKey, $method) { |
|
| 223 | 223 | return [ |
| 224 | 224 | "key" => $cacheKey, |
| 225 | 225 | "value" => parent::{$method}(...$arguments), |