@@ -47,7 +47,8 @@ |
||
47 | 47 | { |
48 | 48 | $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) { |
49 | 49 | return function (FormInterface $form) use ($validationGroups) { |
50 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
50 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
51 | +// Validate the coupon if it was sent |
|
51 | 52 | $validationGroups[] = 'sylius_promotion_coupon'; |
52 | 53 | } |
53 | 54 |
@@ -15,7 +15,8 @@ |
||
15 | 15 | */ |
16 | 16 | public function it_does_not_crash(): void |
17 | 17 | { |
18 | - new class() extends Bundle { |
|
18 | + new class() extends Bundle |
|
19 | + { |
|
19 | 20 | use SyliusPluginTrait; |
20 | 21 | }; |
21 | 22 | } |
@@ -103,7 +103,8 @@ |
||
103 | 103 | } |
104 | 104 | } |
105 | 105 | |
106 | - public function reset() { |
|
106 | + public function reset() |
|
107 | + { |
|
107 | 108 | $this->cart = null; |
108 | 109 | } |
109 | 110 | } |