@@ -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; |
@@ -24,7 +24,8 @@ |
||
24 | 24 | /** |
25 | 25 | * @param CommandBus $bus |
26 | 26 | */ |
27 | - public function __construct(CommandBus $bus) { |
|
27 | + public function __construct(CommandBus $bus) |
|
28 | + { |
|
28 | 29 | $this->bus = $bus; |
29 | 30 | } |
30 | 31 |
@@ -12,8 +12,7 @@ |
||
12 | 12 | { |
13 | 13 | $breadcrumb = $product->getTranslation($locale)->getSlug(); |
14 | 14 | |
15 | - if (null !== $taxon = $product->getMainTaxon()) |
|
16 | - { |
|
15 | + if (null !== $taxon = $product->getMainTaxon()) { |
|
17 | 16 | $breadcrumb = sprintf('%s/%s', $taxon->getTranslation($locale)->getSlug(), $breadcrumb); |
18 | 17 | } |
19 | 18 |