@@ -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 | } |
@@ -33,8 +33,7 @@ |
||
| 33 | 33 | function it_returns_null_if_product_has_no_variants( |
| 34 | 34 | ProductVariantResolverInterface $productVariantResolver, |
| 35 | 35 | ProductInterface $product |
| 36 | - ) |
|
| 37 | - { |
|
| 36 | + ) { |
|
| 38 | 37 | $productVariantResolver->getVariant($product)->willReturn(null); |
| 39 | 38 | |
| 40 | 39 | $this->resolveVariant($product)->shouldBeEqualTo(null); |