@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | public function avg($column) |
17 | 17 | { |
18 | - if (! $this->isCachable()) { |
|
18 | + if (!$this->isCachable()) { |
|
19 | 19 | return parent::avg($column); |
20 | 20 | } |
21 | 21 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | public function count($columns = "*") |
28 | 28 | { |
29 | - if (! $this->isCachable()) { |
|
29 | + if (!$this->isCachable()) { |
|
30 | 30 | return parent::count($columns); |
31 | 31 | } |
32 | 32 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function find($id, $columns = ["*"]) |
50 | 50 | { |
51 | - if (! $this->isCachable()) { |
|
51 | + if (!$this->isCachable()) { |
|
52 | 52 | return parent::find($id, $columns); |
53 | 53 | } |
54 | 54 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | public function first($columns = ["*"]) |
62 | 62 | { |
63 | - if (! $this->isCachable()) { |
|
63 | + if (!$this->isCachable()) { |
|
64 | 64 | return parent::first($columns); |
65 | 65 | } |
66 | 66 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | public function get($columns = ["*"]) |
73 | 73 | { |
74 | - if (! $this->isCachable()) { |
|
74 | + if (!$this->isCachable()) { |
|
75 | 75 | return parent::get($columns); |
76 | 76 | } |
77 | 77 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | public function max($column) |
98 | 98 | { |
99 | - if (! $this->isCachable()) { |
|
99 | + if (!$this->isCachable()) { |
|
100 | 100 | return parent::max($column); |
101 | 101 | } |
102 | 102 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | public function min($column) |
109 | 109 | { |
110 | - if (! $this->isCachable()) { |
|
110 | + if (!$this->isCachable()) { |
|
111 | 111 | return parent::min($column); |
112 | 112 | } |
113 | 113 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $pageName = "page", |
123 | 123 | $page = null |
124 | 124 | ) { |
125 | - if (! $this->isCachable()) { |
|
125 | + if (!$this->isCachable()) { |
|
126 | 126 | return parent::paginate($perPage, $columns, $pageName, $page); |
127 | 127 | } |
128 | 128 | |
@@ -144,12 +144,12 @@ discard block |
||
144 | 144 | |
145 | 145 | foreach ($items as $key => $value) { |
146 | 146 | if (is_array($value)) { |
147 | - $result .= $key . $glue . $this->recursiveImplode($value, $glue); |
|
147 | + $result .= $key.$glue.$this->recursiveImplode($value, $glue); |
|
148 | 148 | |
149 | 149 | continue; |
150 | 150 | } |
151 | 151 | |
152 | - $result .= $glue . $key . $glue . $value; |
|
152 | + $result .= $glue.$key.$glue.$value; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | return $result; |
@@ -157,11 +157,11 @@ discard block |
||
157 | 157 | |
158 | 158 | public function pluck($column, $key = null) |
159 | 159 | { |
160 | - if (! $this->isCachable()) { |
|
160 | + if (!$this->isCachable()) { |
|
161 | 161 | return parent::pluck($column, $key); |
162 | 162 | } |
163 | 163 | |
164 | - $keyDifferentiator = "-pluck_{$column}" . ($key ? "_{$key}" : ""); |
|
164 | + $keyDifferentiator = "-pluck_{$column}".($key ? "_{$key}" : ""); |
|
165 | 165 | $cacheKey = $this->makeCacheKey([$column], null, $keyDifferentiator); |
166 | 166 | |
167 | 167 | return $this->cachedValue(func_get_args(), $cacheKey); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | public function sum($column) |
171 | 171 | { |
172 | - if (! $this->isCachable()) { |
|
172 | + if (!$this->isCachable()) { |
|
173 | 173 | return parent::sum($column); |
174 | 174 | } |
175 | 175 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | |
188 | 188 | public function value($column) |
189 | 189 | { |
190 | - if (! $this->isCachable()) { |
|
190 | + if (!$this->isCachable()) { |
|
191 | 191 | return parent::value($column); |
192 | 192 | } |
193 | 193 | |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | return $this->cache($cacheTags) |
257 | 257 | ->rememberForever( |
258 | 258 | $hashedCacheKey, |
259 | - function () use ($arguments, $cacheKey, $method) { |
|
259 | + function() use ($arguments, $cacheKey, $method) { |
|
260 | 260 | return [ |
261 | 261 | "key" => $cacheKey, |
262 | 262 | "value" => parent::{$method}(...$arguments), |