@@ -178,7 +178,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |