@@ -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 | |
@@ -143,12 +143,12 @@ discard block |
||
143 | 143 | |
144 | 144 | foreach ($items as $key => $value) { |
145 | 145 | if (is_array($value)) { |
146 | - $result .= $key . $glue . $this->recursiveImplodeWithKey($value, $glue); |
|
146 | + $result .= $key.$glue.$this->recursiveImplodeWithKey($value, $glue); |
|
147 | 147 | |
148 | 148 | continue; |
149 | 149 | } |
150 | 150 | |
151 | - $result .= $glue . $key . $glue . $value; |
|
151 | + $result .= $glue.$key.$glue.$value; |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | return $result; |
@@ -156,11 +156,11 @@ discard block |
||
156 | 156 | |
157 | 157 | public function pluck($column, $key = null) |
158 | 158 | { |
159 | - if (! $this->isCachable()) { |
|
159 | + if (!$this->isCachable()) { |
|
160 | 160 | return parent::pluck($column, $key); |
161 | 161 | } |
162 | 162 | |
163 | - $keyDifferentiator = "-pluck_{$column}" . ($key ? "_{$key}" : ""); |
|
163 | + $keyDifferentiator = "-pluck_{$column}".($key ? "_{$key}" : ""); |
|
164 | 164 | $cacheKey = $this->makeCacheKey([$column], null, $keyDifferentiator); |
165 | 165 | |
166 | 166 | return $this->cachedValue(func_get_args(), $cacheKey); |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | |
169 | 169 | public function sum($column) |
170 | 170 | { |
171 | - if (! $this->isCachable()) { |
|
171 | + if (!$this->isCachable()) { |
|
172 | 172 | return parent::sum($column); |
173 | 173 | } |
174 | 174 | |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | |
187 | 187 | public function value($column) |
188 | 188 | { |
189 | - if (! $this->isCachable()) { |
|
189 | + if (!$this->isCachable()) { |
|
190 | 190 | return parent::value($column); |
191 | 191 | } |
192 | 192 | |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | return $this->cache($cacheTags) |
256 | 256 | ->rememberForever( |
257 | 257 | $hashedCacheKey, |
258 | - function () use ($arguments, $cacheKey, $method) { |
|
258 | + function() use ($arguments, $cacheKey, $method) { |
|
259 | 259 | return [ |
260 | 260 | "key" => $cacheKey, |
261 | 261 | "value" => parent::{$method}(...$arguments), |