Passed
Push — master ( c85858...a49ca0 )
by Mike
03:57 queued 01:19
created
src/CachedBuilder.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function find($id, $columns = ["*"])
58 58
     {
59
-        if (! $this->isCachable()) {
59
+        if (!$this->isCachable()) {
60 60
             return parent::find($id, $columns);
61 61
         }
62 62
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     public function first($columns = ["*"])
74 74
     {
75
-        if (! $this->isCachable()) {
75
+        if (!$this->isCachable()) {
76 76
             return parent::first($columns);
77 77
         }
78 78
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
     public function get($columns = ["*"])
93 93
     {
94
-        if (! $this->isCachable()) {
94
+        if (!$this->isCachable()) {
95 95
             return parent::get($columns);
96 96
         }
97 97
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
     public function max($column)
126 126
     {
127
-        if (! $this->isCachable()) {
127
+        if (!$this->isCachable()) {
128 128
             return parent::max($column);
129 129
         }
130 130
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
     public function min($column)
137 137
     {
138
-        if (! $this->isCachable()) {
138
+        if (!$this->isCachable()) {
139 139
             return parent::min($column);
140 140
         }
141 141
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $pageName = "page",
151 151
         $page = null
152 152
     ) {
153
-        if (! $this->isCachable()) {
153
+        if (!$this->isCachable()) {
154 154
             return parent::paginate($perPage, $columns, $pageName, $page);
155 155
         }
156 156
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     {
171 171
         $relation = parent::getRelation($name);
172 172
 
173
-        if (! $this->isCachable()
173
+        if (!$this->isCachable()
174 174
             && is_a($relation->getQuery(), self::class)
175 175
         ) {
176 176
             $relation->getQuery()->disableModelCaching();
@@ -185,12 +185,12 @@  discard block
 block discarded – undo
185 185
 
186 186
         foreach ($items as $key => $value) {
187 187
             if (is_array($value)) {
188
-                $result .= $key . $glue . $this->recursiveImplodeWithKey($value, $glue);
188
+                $result .= $key.$glue.$this->recursiveImplodeWithKey($value, $glue);
189 189
 
190 190
                 continue;
191 191
             }
192 192
 
193
-            $result .= $glue . $key . $glue . $value;
193
+            $result .= $glue.$key.$glue.$value;
194 194
         }
195 195
 
196 196
         return $result;
@@ -198,11 +198,11 @@  discard block
 block discarded – undo
198 198
 
199 199
     public function pluck($column, $key = null)
200 200
     {
201
-        if (! $this->isCachable()) {
201
+        if (!$this->isCachable()) {
202 202
             return parent::pluck($column, $key);
203 203
         }
204 204
 
205
-        $keyDifferentiator = "-pluck_{$column}" . ($key ? "_{$key}" : "");
205
+        $keyDifferentiator = "-pluck_{$column}".($key ? "_{$key}" : "");
206 206
         $cacheKey = $this->makeCacheKey([$column], null, $keyDifferentiator);
207 207
 
208 208
         return $this->cachedValue(func_get_args(), $cacheKey);
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
     public function sum($column)
212 212
     {
213
-        if (! $this->isCachable()) {
213
+        if (!$this->isCachable()) {
214 214
             return parent::sum($column);
215 215
         }
216 216
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 
229 229
     public function value($column)
230 230
     {
231
-        if (! $this->isCachable()) {
231
+        if (!$this->isCachable()) {
232 232
             return parent::value($column);
233 233
         }
234 234
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
         return $this->cache($cacheTags)
298 298
             ->rememberForever(
299 299
                 $hashedCacheKey,
300
-                function () use ($arguments, $cacheKey, $method) {
300
+                function() use ($arguments, $cacheKey, $method) {
301 301
                     return [
302 302
                         "key" => $cacheKey,
303 303
                         "value" => parent::{$method}(...$arguments),
Please login to merge, or discard this patch.