Completed
Push — master ( d2e848...df809c )
by Scott
04:32
created
models/Product.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -131,12 +131,12 @@  discard block
 block discarded – undo
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
 
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      */
281 281
     public static function syncAllInheritedCategories()
282 282
     {
283
-        Queue::push(function ($job) {
283
+        Queue::push(function($job) {
284 284
             $data = [];
285 285
             $products = Product::with('categories')->get();
286 286
             $categoryTree = Category::getParentCategoryIds();
@@ -337,8 +337,8 @@  discard block
 block discarded – undo
337 337
 
338 338
     public function validateOptions()
339 339
     {
340
-        if (! is_array($this->optionsInventories) ||
341
-            ! is_array($this->optionsInventories['options'])) {
340
+        if (!is_array($this->optionsInventories) ||
341
+            !is_array($this->optionsInventories['options'])) {
342 342
             return;
343 343
         }
344 344
 
Please login to merge, or discard this patch.