@@ -300,7 +300,7 @@ |
||
300 | 300 | return $product->getVariants()[0]; |
301 | 301 | } |
302 | 302 | |
303 | - if ($product->hasOptions()){ |
|
303 | + if ($product->hasOptions()) { |
|
304 | 304 | return $this->getVariant($request->request->get('options'), $product); |
305 | 305 | } |
306 | 306 |
@@ -70,8 +70,7 @@ |
||
70 | 70 | /** @var PromotionCouponInterface $coupon */ |
71 | 71 | $coupon = $this->promotionCouponRepository->findOneBy(['code' => $command->couponCode()]); |
72 | 72 | |
73 | - if (null === $coupon || !$this->couponEligibilityChecker->isEligible($cart, $coupon)) |
|
74 | - { |
|
73 | + if (null === $coupon || !$this->couponEligibilityChecker->isEligible($cart, $coupon)) { |
|
75 | 74 | $this->buildViolation($constraint); |
76 | 75 | |
77 | 76 | return; |