| @@ -13,8 +13,8 @@ | ||
| 13 | 13 | |
| 14 | 14 | use Doctrine\Common\Persistence\ObjectManager; | 
| 15 | 15 | use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; | 
| 16 | -use Sylius\Component\Review\Model\ReviewableInterface; | |
| 17 | 16 | use Sylius\Component\Review\Model\ReviewInterface; | 
| 17 | +use Sylius\Component\Review\Model\ReviewableInterface; | |
| 18 | 18 | |
| 19 | 19 | /** | 
| 20 | 20 | * @author Mateusz Zalewski <[email protected]> | 
| @@ -11,8 +11,8 @@ | ||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\ReviewBundle\Updater; | 
| 13 | 13 | |
| 14 | -use Sylius\Component\Review\Model\ReviewableInterface; | |
| 15 | 14 | use Sylius\Component\Review\Model\ReviewInterface; | 
| 15 | +use Sylius\Component\Review\Model\ReviewableInterface; | |
| 16 | 16 | |
| 17 | 17 | /** | 
| 18 | 18 | * @author Mateusz Zalewski <[email protected]> | 
| @@ -13,8 +13,8 @@ | ||
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; | 
| 15 | 15 | use Symfony\Component\Form\Extension\Core\Type\ChoiceType; | 
| 16 | -use Symfony\Component\Form\Extension\Core\Type\TextareaType; | |
| 17 | 16 | use Symfony\Component\Form\Extension\Core\Type\TextType; | 
| 17 | +use Symfony\Component\Form\Extension\Core\Type\TextareaType; | |
| 18 | 18 | use Symfony\Component\Form\FormBuilderInterface; | 
| 19 | 19 | use Symfony\Component\OptionsResolver\OptionsResolver; | 
| 20 | 20 | use Symfony\Component\Validator\Constraints\Valid; | 
| @@ -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 | |
| @@ -16,13 +16,13 @@ | ||
| 16 | 16 | use Sylius\Behat\NotificationType; | 
| 17 | 17 | use Sylius\Behat\Page\Admin\Crud\CreatePageInterface; | 
| 18 | 18 | use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; | 
| 19 | +use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; | |
| 19 | 20 | use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface; | 
| 20 | 21 | use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface; | 
| 21 | 22 | use Sylius\Behat\Page\Admin\Product\IndexPageInterface; | 
| 22 | 23 | use Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface; | 
| 23 | 24 | use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface; | 
| 24 | 25 | use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface; | 
| 25 | -use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; | |
| 26 | 26 | use Sylius\Behat\Page\SymfonyPageInterface; | 
| 27 | 27 | use Sylius\Behat\Service\NotificationCheckerInterface; | 
| 28 | 28 | use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; | 
| @@ -16,8 +16,8 @@ | ||
| 16 | 16 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; | 
| 17 | 17 | use Sylius\Bundle\ReviewBundle\Form\Type\ReviewType; | 
| 18 | 18 | use Sylius\Component\Resource\Factory\Factory; | 
| 19 | -use Sylius\Component\Review\Model\ReviewerInterface; | |
| 20 | 19 | use Sylius\Component\Review\Model\ReviewInterface; | 
| 20 | +use Sylius\Component\Review\Model\ReviewerInterface; | |
| 21 | 21 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; | 
| 22 | 22 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; | 
| 23 | 23 | use Symfony\Component\Config\Definition\ConfigurationInterface; | 
| @@ -14,8 +14,8 @@ | ||
| 14 | 14 | use Sylius\Component\Addressing\Model\ZoneInterface; | 
| 15 | 15 | use Sylius\Component\Channel\Model\ChannelsAwareInterface; | 
| 16 | 16 | use Sylius\Component\Shipping\Model\ShippingMethodInterface as BaseShippingMethodInterface; | 
| 17 | -use Sylius\Component\Taxation\Model\TaxableInterface; | |
| 18 | 17 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; | 
| 18 | +use Sylius\Component\Taxation\Model\TaxableInterface; | |
| 19 | 19 | |
| 20 | 20 | /** | 
| 21 | 21 | * @author Paweł Jędrzejewski <[email protected]> | 
| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | |
| 14 | 14 | use Behat\Behat\Context\Context; | 
| 15 | 15 | use Behat\Mink\Element\NodeElement; | 
| 16 | +use Sylius\Behat\Page\Shop\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; | |
| 16 | 17 | use Sylius\Behat\Page\Shop\Product\IndexPageInterface; | 
| 17 | 18 | use Sylius\Behat\Page\Shop\Product\ShowPageInterface; | 
| 18 | -use Sylius\Behat\Page\Shop\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; | |
| 19 | 19 | use Sylius\Component\Core\Model\ProductInterface; | 
| 20 | 20 | use Sylius\Component\Core\Model\TaxonInterface; | 
| 21 | 21 | use Webmozart\Assert\Assert; | 
| @@ -11,8 +11,8 @@ | ||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\GridBundle\Doctrine\ORM; | 
| 13 | 13 | |
| 14 | -use Doctrine\ORM\Query\Expr\Comparison; | |
| 15 | 14 | use Doctrine\ORM\QueryBuilder; | 
| 15 | +use Doctrine\ORM\Query\Expr\Comparison; | |
| 16 | 16 | use Sylius\Component\Grid\Data\ExpressionBuilderInterface; | 
| 17 | 17 | |
| 18 | 18 | /** |