Passed
Push — master ( 0d380a...4af149 )
by Luiz Kim
02:35
created
src/Service/OrderProductService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
         $this->orderProductQueueService->addProductToQueue($OProduct);
56 56
     }
57 57
 
58
-    private function checkInventory(OrderProduct &$orderProduct)
58
+    private function checkInventory(OrderProduct & $orderProduct)
59 59
     {
60 60
         $order = $orderProduct->getOrder();
61
-        $product =  $orderProduct->getProduct();
61
+        $product = $orderProduct->getProduct();
62 62
 
63 63
         if ($order->getOrderType() == 'sale' && !$orderProduct->getOutInventory())
64 64
             $orderProduct->setOutInventory($product->getDefaultOutInventory());
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->checkInventory($orderProduct);
79 79
         foreach ($subProducts as $subproduct) {
80 80
             $product = $this->manager->getRepository(Product::class)->find($subproduct['product']);
81
-            $productGroup =  $this->manager->getRepository(ProductGroup::class)->find($subproduct['productGroup']);
81
+            $productGroup = $this->manager->getRepository(ProductGroup::class)->find($subproduct['productGroup']);
82 82
             $this->addSubproduct($orderProduct, $product, $productGroup, $subproduct['quantity']);
83 83
         }
84 84
         $this->orderProductQueueService->addProductToQueue($orderProduct);
Please login to merge, or discard this patch.