@@ -131,12 +131,12 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | protected function deleteRelatedOptions($options) |
| 133 | 133 | { |
| 134 | - return array_filter($options, function ($option) { |
|
| 134 | + return array_filter($options, function($option) { |
|
| 135 | 135 | if ($option['id'] !== null && $option['is_deleted']) { |
| 136 | 136 | Option::find($option['id'])->delete(); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - return ! $option['is_deleted']; |
|
| 139 | + return !$option['is_deleted']; |
|
| 140 | 140 | }); |
| 141 | 141 | } |
| 142 | 142 | |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | * @param string $sessionKey |
| 241 | 241 | * @return void |
| 242 | 242 | */ |
| 243 | - protected function saveRelatedOptionValues(Option &$option, array $values, $sessionKey) |
|
| 243 | + protected function saveRelatedOptionValues(Option & $option, array $values, $sessionKey) |
|
| 244 | 244 | { |
| 245 | 245 | foreach ($values as $value) { |
| 246 | 246 | $model = $value['id'] !== null |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | */ |
| 283 | 283 | public static function syncAllInheritedCategories() |
| 284 | 284 | { |
| 285 | - Queue::push(function ($job) { |
|
| 285 | + Queue::push(function($job) { |
|
| 286 | 286 | $data = []; |
| 287 | 287 | $products = Product::with('categories')->get(); |
| 288 | 288 | $categoryTree = Category::getParentCategoryIds(); |
@@ -339,8 +339,8 @@ discard block |
||
| 339 | 339 | |
| 340 | 340 | public function validateOptions() |
| 341 | 341 | { |
| 342 | - if (! is_array($this->optionsInventories) || |
|
| 343 | - ! is_array($this->optionsInventories['options'])) { |
|
| 342 | + if (!is_array($this->optionsInventories) || |
|
| 343 | + !is_array($this->optionsInventories['options'])) { |
|
| 344 | 344 | return; |
| 345 | 345 | } |
| 346 | 346 | |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | public function createValue() |
| 15 | 15 | { |
| 16 | 16 | $data = input('value'); |
| 17 | - if (! $data || ! is_array($data)) { |
|
| 17 | + if (!$data || !is_array($data)) { |
|
| 18 | 18 | return Response::make('Error', 422); |
| 19 | 19 | } |
| 20 | 20 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | public function validate() |
| 39 | 39 | { |
| 40 | 40 | $data = input('option'); |
| 41 | - if (! $data || ! is_array($data)) { |
|
| 41 | + if (!$data || !is_array($data)) { |
|
| 42 | 42 | return Response::make('Error', 422); |
| 43 | 43 | } |
| 44 | 44 | |