@@ -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 | |
@@ -25,7 +25,8 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function it_does_not_crash(): void |
| 27 | 27 | { |
| 28 | - $class = new class() extends Bundle { |
|
| 28 | + $class = new class() extends Bundle |
|
| 29 | + { |
|
| 29 | 30 | use SyliusPluginTrait; |
| 30 | 31 | }; |
| 31 | 32 | |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Taxation\Resolver; |
| 15 | 15 | |
| 16 | -use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 17 | 16 | use Sylius\Component\Taxation\Model\TaxRateInterface; |
| 17 | +use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 18 | 18 | |
| 19 | 19 | interface TaxRateResolverInterface |
| 20 | 20 | { |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | namespace Sylius\Component\Taxation\Resolver; |
| 15 | 15 | |
| 16 | 16 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
| 17 | -use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 18 | 17 | use Sylius\Component\Taxation\Model\TaxRateInterface; |
| 18 | +use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 19 | 19 | |
| 20 | 20 | class TaxRateResolver implements TaxRateResolverInterface |
| 21 | 21 | { |
@@ -18,15 +18,15 @@ |
||
| 18 | 18 | use Sylius\Behat\NotificationType; |
| 19 | 19 | use Sylius\Behat\Page\Admin\Crud\CreatePageInterface; |
| 20 | 20 | use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
| 21 | +use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 22 | +use Sylius\Behat\Page\Admin\ProductVariant\CreatePageInterface as VariantCreatePageInterface; |
|
| 23 | +use Sylius\Behat\Page\Admin\ProductVariant\GeneratePageInterface; |
|
| 21 | 24 | use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface; |
| 22 | 25 | use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface; |
| 23 | 26 | use Sylius\Behat\Page\Admin\Product\IndexPageInterface; |
| 24 | 27 | use Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface; |
| 25 | 28 | use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface; |
| 26 | 29 | use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface; |
| 27 | -use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 28 | -use Sylius\Behat\Page\Admin\ProductVariant\CreatePageInterface as VariantCreatePageInterface; |
|
| 29 | -use Sylius\Behat\Page\Admin\ProductVariant\GeneratePageInterface; |
|
| 30 | 30 | use Sylius\Behat\Service\NotificationCheckerInterface; |
| 31 | 31 | use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; |
| 32 | 32 | use Sylius\Behat\Service\SharedStorageInterface; |