Passed
Push — master ( 54ec09...19cb68 )
by Luiz Kim
02:20
created
src/Service/OrderProductService.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,9 @@
 block discarded – undo
27 27
         $parentProducts = $this->manager->getRepository(OrderProduct::class)->findBy([
28 28
             'parentProduct'  => $orderProduct->getProduct(),
29 29
         ]);
30
-        foreach ($parentProducts as $parentProduct)
31
-            $this->manager->remove($parentProduct);
30
+        foreach ($parentProducts as $parentProduct) {
31
+                    $this->manager->remove($parentProduct);
32
+        }
32 33
         $this->manager->flush();
33 34
 
34 35
         return $this->calculateProductPrice($orderProduct);
Please login to merge, or discard this patch.