@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | { |
| 10 | 10 | public function avg($column) |
| 11 | 11 | { |
| 12 | - if (! $this->isCachable()) { |
|
| 12 | + if (!$this->isCachable()) { |
|
| 13 | 13 | return parent::avg($column); |
| 14 | 14 | } |
| 15 | 15 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | public function count($columns = "*") |
| 22 | 22 | { |
| 23 | - if (! $this->isCachable()) { |
|
| 23 | + if (!$this->isCachable()) { |
|
| 24 | 24 | return parent::count($columns); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | public function exists() |
| 33 | 33 | { |
| 34 | - if (! $this->isCachable()) { |
|
| 34 | + if (!$this->isCachable()) { |
|
| 35 | 35 | return parent::exists(); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function find($id, $columns = ["*"]) |
| 63 | 63 | { |
| 64 | - if (! $this->isCachable()) { |
|
| 64 | + if (!$this->isCachable()) { |
|
| 65 | 65 | return parent::find($id, $columns); |
| 66 | 66 | } |
| 67 | 67 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | public function first($columns = ["*"]) |
| 80 | 80 | { |
| 81 | - if (! $this->isCachable()) { |
|
| 81 | + if (!$this->isCachable()) { |
|
| 82 | 82 | return parent::first($columns); |
| 83 | 83 | } |
| 84 | 84 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | public function get($columns = ["*"]) |
| 100 | 100 | { |
| 101 | - if (! $this->isCachable()) { |
|
| 101 | + if (!$this->isCachable()) { |
|
| 102 | 102 | return parent::get($columns); |
| 103 | 103 | } |
| 104 | 104 | |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | public function max($column) |
| 136 | 136 | { |
| 137 | - if (! $this->isCachable()) { |
|
| 137 | + if (!$this->isCachable()) { |
|
| 138 | 138 | return parent::max($column); |
| 139 | 139 | } |
| 140 | 140 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | |
| 146 | 146 | public function min($column) |
| 147 | 147 | { |
| 148 | - if (! $this->isCachable()) { |
|
| 148 | + if (!$this->isCachable()) { |
|
| 149 | 149 | return parent::min($column); |
| 150 | 150 | } |
| 151 | 151 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $page = null, |
| 162 | 162 | $total = null |
| 163 | 163 | ) { |
| 164 | - if (! $this->isCachable()) { |
|
| 164 | + if (!$this->isCachable()) { |
|
| 165 | 165 | return parent::paginate($perPage, $columns, $pageName, $page); |
| 166 | 166 | } |
| 167 | 167 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $result = ""; |
| 192 | 192 | |
| 193 | 193 | foreach ($items as $key => $value) { |
| 194 | - $result .= $glue . $key . $glue . $value; |
|
| 194 | + $result .= $glue.$key.$glue.$value; |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | return $result; |
@@ -199,11 +199,11 @@ discard block |
||
| 199 | 199 | |
| 200 | 200 | public function pluck($column, $key = null) |
| 201 | 201 | { |
| 202 | - if (! $this->isCachable()) { |
|
| 202 | + if (!$this->isCachable()) { |
|
| 203 | 203 | return parent::pluck($column, $key); |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | - $keyDifferentiator = "-pluck_{$column}" . ($key ? "_{$key}" : ""); |
|
| 206 | + $keyDifferentiator = "-pluck_{$column}".($key ? "_{$key}" : ""); |
|
| 207 | 207 | $cacheKey = $this->makeCacheKey([$column], null, $keyDifferentiator); |
| 208 | 208 | |
| 209 | 209 | return $this->cachedValue(func_get_args(), $cacheKey); |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | public function sum($column) |
| 213 | 213 | { |
| 214 | - if (! $this->isCachable()) { |
|
| 214 | + if (!$this->isCachable()) { |
|
| 215 | 215 | return parent::sum($column); |
| 216 | 216 | } |
| 217 | 217 | |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | |
| 232 | 232 | public function value($column) |
| 233 | 233 | { |
| 234 | - if (! $this->isCachable()) { |
|
| 234 | + if (!$this->isCachable()) { |
|
| 235 | 235 | return parent::value($column); |
| 236 | 236 | } |
| 237 | 237 | |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | return $this->cache($cacheTags) |
| 307 | 307 | ->rememberForever( |
| 308 | 308 | $hashedCacheKey, |
| 309 | - function () use ($arguments, $cacheKey, $method) { |
|
| 309 | + function() use ($arguments, $cacheKey, $method) { |
|
| 310 | 310 | return [ |
| 311 | 311 | "key" => $cacheKey, |
| 312 | 312 | "value" => parent::{$method}(...$arguments), |