@@ -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 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $pageName = "page", |
| 161 | 161 | $page = null |
| 162 | 162 | ) { |
| 163 | - if (! $this->isCachable()) { |
|
| 163 | + if (!$this->isCachable()) { |
|
| 164 | 164 | return parent::paginate($perPage, $columns, $pageName, $page); |
| 165 | 165 | } |
| 166 | 166 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | $result = ""; |
| 185 | 185 | |
| 186 | 186 | foreach ($items as $key => $value) { |
| 187 | - $result .= $glue . $key . $glue . $value; |
|
| 187 | + $result .= $glue.$key.$glue.$value; |
|
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | return $result; |
@@ -192,11 +192,11 @@ discard block |
||
| 192 | 192 | |
| 193 | 193 | public function pluck($column, $key = null) |
| 194 | 194 | { |
| 195 | - if (! $this->isCachable()) { |
|
| 195 | + if (!$this->isCachable()) { |
|
| 196 | 196 | return parent::pluck($column, $key); |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | - $keyDifferentiator = "-pluck_{$column}" . ($key ? "_{$key}" : ""); |
|
| 199 | + $keyDifferentiator = "-pluck_{$column}".($key ? "_{$key}" : ""); |
|
| 200 | 200 | $cacheKey = $this->makeCacheKey([$column], null, $keyDifferentiator); |
| 201 | 201 | |
| 202 | 202 | return $this->cachedValue(func_get_args(), $cacheKey); |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | |
| 205 | 205 | public function sum($column) |
| 206 | 206 | { |
| 207 | - if (! $this->isCachable()) { |
|
| 207 | + if (!$this->isCachable()) { |
|
| 208 | 208 | return parent::sum($column); |
| 209 | 209 | } |
| 210 | 210 | |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | |
| 225 | 225 | public function value($column) |
| 226 | 226 | { |
| 227 | - if (! $this->isCachable()) { |
|
| 227 | + if (!$this->isCachable()) { |
|
| 228 | 228 | return parent::value($column); |
| 229 | 229 | } |
| 230 | 230 | |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | return $this->cache($cacheTags) |
| 300 | 300 | ->rememberForever( |
| 301 | 301 | $hashedCacheKey, |
| 302 | - function () use ($arguments, $cacheKey, $method) { |
|
| 302 | + function() use ($arguments, $cacheKey, $method) { |
|
| 303 | 303 | return [ |
| 304 | 304 | "key" => $cacheKey, |
| 305 | 305 | "value" => parent::{$method}(...$arguments), |