@@ -143,12 +143,12 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | protected function deleteRelatedOptions($options) |
| 145 | 145 | { |
| 146 | - return array_filter($options, function ($option) { |
|
| 146 | + return array_filter($options, function($option) { |
|
| 147 | 147 | if ($option['id'] !== null && $option['is_deleted']) { |
| 148 | 148 | Option::find($option['id'])->delete(); |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | - return ! $option['is_deleted']; |
|
| 151 | + return !$option['is_deleted']; |
|
| 152 | 152 | }); |
| 153 | 153 | } |
| 154 | 154 | |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | * @param string $sessionKey |
| 270 | 270 | * @return void |
| 271 | 271 | */ |
| 272 | - protected function saveRelatedOptionValues(Option &$option, array $values, $sessionKey) |
|
| 272 | + protected function saveRelatedOptionValues(Option & $option, array $values, $sessionKey) |
|
| 273 | 273 | { |
| 274 | 274 | foreach ($values as $value) { |
| 275 | 275 | $model = $value['id'] !== null |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | */ |
| 312 | 312 | public static function syncAllInheritedCategories() |
| 313 | 313 | { |
| 314 | - Queue::push(function ($job) { |
|
| 314 | + Queue::push(function($job) { |
|
| 315 | 315 | $data = []; |
| 316 | 316 | $products = Product::with('categories')->get(); |
| 317 | 317 | $categoryTree = Category::getParentCategoryIds(); |
@@ -374,8 +374,8 @@ discard block |
||
| 374 | 374 | */ |
| 375 | 375 | protected function validateInventories() |
| 376 | 376 | { |
| 377 | - if (! is_array($this->optionsInventories) || |
|
| 378 | - ! is_array($this->optionsInventories['options'])) { |
|
| 377 | + if (!is_array($this->optionsInventories) || |
|
| 378 | + !is_array($this->optionsInventories['options'])) { |
|
| 379 | 379 | return; |
| 380 | 380 | } |
| 381 | 381 | |
@@ -406,8 +406,8 @@ discard block |
||
| 406 | 406 | */ |
| 407 | 407 | protected function validateOptions() |
| 408 | 408 | { |
| 409 | - if (! is_array($this->optionsInventories) || |
|
| 410 | - ! is_array($this->optionsInventories['options'])) { |
|
| 409 | + if (!is_array($this->optionsInventories) || |
|
| 410 | + !is_array($this->optionsInventories['options'])) { |
|
| 411 | 411 | return; |
| 412 | 412 | } |
| 413 | 413 | |