Completed
Push — master ( 17338c...3207ba )
by Scott
01:57
created
repositories/CategoryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function fetch(array $params = [])
15 15
     {
16
-        if (! array_key_exists('select', $params) || ! is_array($params['select']) || empty($params['select'])) {
16
+        if (!array_key_exists('select', $params) || !is_array($params['select']) || empty($params['select'])) {
17 17
             throw new Exception('Categories fetch() must select at least one column.');
18 18
         }
19 19
 
Please login to merge, or discard this patch.
classes/BackendController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         foreach ($keys as $key => $value) {
26 26
             $isFiltered = gettype($value) === 'array';
27 27
 
28
-            if (! $isFiltered) {
28
+            if (!$isFiltered) {
29 29
                 $key = $value;
30 30
             }
31 31
 
Please login to merge, or discard this patch.
models/Category.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
     public static function getParentIds($children, \October\Rain\Database\Collection $categories = null)
180 180
     {
181
-        if (! is_array($children)) {
181
+        if (!is_array($children)) {
182 182
             $children = [$children];
183 183
         }
184 184
 
@@ -188,13 +188,13 @@  discard block
 block discarded – undo
188 188
 
189 189
         $parents = [];
190 190
         foreach ($children as $child) {
191
-            $category = $categories->filter(function ($model) use ($child) {
191
+            $category = $categories->filter(function($model) use ($child) {
192 192
                 return $model->id == $child;
193 193
             })->first();
194 194
 
195 195
             while ($category && $category->parent_id) {
196 196
                 $parents[] = $category->parent_id;
197
-                $category = $categories->filter(function ($model) use ($category) {
197
+                $category = $categories->filter(function($model) use ($category) {
198 198
                     return $model->id == $category->parent_id;
199 199
                 })->first();
200 200
             }
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      */
227 227
     public function isCustomSorted()
228 228
     {
229
-        return ! $this->product_sort_column && ! $this->product_sort_direction;
229
+        return !$this->product_sort_column && !$this->product_sort_direction;
230 230
     }
231 231
 
232 232
     /**
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      */
307 307
     protected function setNullParentId()
308 308
     {
309
-        if (! $this->parent_id) {
309
+        if (!$this->parent_id) {
310 310
             $this->parent_id = null;
311 311
         }
312 312
     }
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
      */
348 348
     public function syncInheritedProductsAfterDelete()
349 349
     {
350
-        if (! $this->dontSyncAfterDelete) {
350
+        if (!$this->dontSyncAfterDelete) {
351 351
             Product::syncAllInheritedCategories();
352 352
         }
353 353
     }
Please login to merge, or discard this patch.