@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | public function avg($column) |
16 | 16 | { |
17 | - if (! $this->isCachable()) { |
|
17 | + if (!$this->isCachable()) { |
|
18 | 18 | return parent::avg($column); |
19 | 19 | } |
20 | 20 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | public function count($columns = "*") |
27 | 27 | { |
28 | - if (! $this->isCachable()) { |
|
28 | + if (!$this->isCachable()) { |
|
29 | 29 | return parent::count($columns); |
30 | 30 | } |
31 | 31 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function find($id, $columns = ["*"]) |
49 | 49 | { |
50 | - if (! $this->isCachable()) { |
|
50 | + if (!$this->isCachable()) { |
|
51 | 51 | return parent::find($id, $columns); |
52 | 52 | } |
53 | 53 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | public function first($columns = ["*"]) |
60 | 60 | { |
61 | - if (! $this->isCachable()) { |
|
61 | + if (!$this->isCachable()) { |
|
62 | 62 | return parent::first($columns); |
63 | 63 | } |
64 | 64 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | public function get($columns = ["*"]) |
71 | 71 | { |
72 | - if (! $this->isCachable()) { |
|
72 | + if (!$this->isCachable()) { |
|
73 | 73 | return parent::get($columns); |
74 | 74 | } |
75 | 75 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | public function max($column) |
89 | 89 | { |
90 | - if (! $this->isCachable()) { |
|
90 | + if (!$this->isCachable()) { |
|
91 | 91 | return parent::max($column); |
92 | 92 | } |
93 | 93 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | public function min($column) |
100 | 100 | { |
101 | - if (! $this->isCachable()) { |
|
101 | + if (!$this->isCachable()) { |
|
102 | 102 | return parent::min($column); |
103 | 103 | } |
104 | 104 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $pageName = "page", |
114 | 114 | $page = null |
115 | 115 | ) { |
116 | - if (! $this->isCachable()) { |
|
116 | + if (!$this->isCachable()) { |
|
117 | 117 | return parent::paginate($perPage, $columns, $pageName, $page); |
118 | 118 | } |
119 | 119 | |
@@ -125,11 +125,11 @@ discard block |
||
125 | 125 | |
126 | 126 | public function pluck($column, $key = null) |
127 | 127 | { |
128 | - if (! $this->isCachable()) { |
|
128 | + if (!$this->isCachable()) { |
|
129 | 129 | return parent::pluck($column, $key); |
130 | 130 | } |
131 | 131 | |
132 | - $keyDifferentiator = "-pluck_{$column}" . ($key ? "_{$key}" : ""); |
|
132 | + $keyDifferentiator = "-pluck_{$column}".($key ? "_{$key}" : ""); |
|
133 | 133 | $cacheKey = $this->makeCacheKey([$column], null, $keyDifferentiator); |
134 | 134 | |
135 | 135 | return $this->cachedValue(func_get_args(), $cacheKey); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | |
138 | 138 | public function sum($column) |
139 | 139 | { |
140 | - if (! $this->isCachable()) { |
|
140 | + if (!$this->isCachable()) { |
|
141 | 141 | return parent::sum($column); |
142 | 142 | } |
143 | 143 | |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | |
156 | 156 | public function value($column) |
157 | 157 | { |
158 | - if (! $this->isCachable()) { |
|
158 | + if (!$this->isCachable()) { |
|
159 | 159 | return parent::value($column); |
160 | 160 | } |
161 | 161 | |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | return $this->cache($cacheTags) |
225 | 225 | ->rememberForever( |
226 | 226 | $hashedCacheKey, |
227 | - function () use ($arguments, $cacheKey, $method) { |
|
227 | + function() use ($arguments, $cacheKey, $method) { |
|
228 | 228 | return [ |
229 | 229 | "key" => $cacheKey, |
230 | 230 | "value" => parent::{$method}(...$arguments), |