@@ -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; |
@@ -35,7 +35,8 @@ |
||
| 35 | 35 | * @param GeneratorInterface $tokenGenerator |
| 36 | 36 | * @param CommandBus $bus |
| 37 | 37 | */ |
| 38 | - public function __construct(ObjectManager $userManager, GeneratorInterface $tokenGenerator, CommandBus $bus) { |
|
| 38 | + public function __construct(ObjectManager $userManager, GeneratorInterface $tokenGenerator, CommandBus $bus) |
|
| 39 | + { |
|
| 39 | 40 | $this->userManager = $userManager; |
| 40 | 41 | $this->tokenGenerator = $tokenGenerator; |
| 41 | 42 | $this->bus = $bus; |