@@ -15,7 +15,6 @@ |
||
15 | 15 | use Sylius\Component\Core\Model\OrderInterface; |
16 | 16 | use Sylius\Component\Core\Model\OrderItemInterface; |
17 | 17 | use Sylius\Component\Core\Model\OrderItemUnitInterface; |
18 | -use Sylius\Component\Promotion\Action\PromotionActionCommandInterface; |
|
19 | 18 | use Sylius\Component\Promotion\Model\PromotionInterface; |
20 | 19 | use Sylius\Component\Promotion\Model\PromotionSubjectInterface; |
21 | 20 | use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Sylius\Component\Customer\Context\CustomerContextInterface; |
18 | 18 | use Sylius\Component\Order\Context\CartContextInterface; |
19 | 19 | use Sylius\Component\Order\Context\CartNotFoundException; |
20 | -use Sylius\Component\Order\Model\OrderInterface; |
|
21 | 20 | |
22 | 21 | /** |
23 | 22 | * @author Mateusz Zalewski <[email protected]> |
@@ -11,9 +11,9 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ReviewBundle\EventListener; |
13 | 13 | |
14 | +use Sylius\Component\Customer\Context\CustomerContextInterface; |
|
14 | 15 | use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
15 | 16 | use Sylius\Component\Review\Model\ReviewInterface; |
16 | -use Sylius\Component\Customer\Context\CustomerContextInterface; |
|
17 | 17 | use Symfony\Component\EventDispatcher\GenericEvent; |
18 | 18 | |
19 | 19 | /** |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Sylius\Bundle\CoreBundle\Form\Extension; |
13 | 13 | |
14 | 14 | use Sylius\Bundle\CoreBundle\Form\EventSubscriber\BuildChannelBasedPromotionRuleFormSubscriber; |
15 | -use Sylius\Bundle\PromotionBundle\Form\Type\Core\AbstractConfigurationType; |
|
16 | 15 | use Sylius\Bundle\PromotionBundle\Form\Type\PromotionRuleChoiceType; |
17 | 16 | use Sylius\Bundle\PromotionBundle\Form\Type\PromotionRuleType; |
18 | 17 | use Sylius\Component\Channel\Repository\ChannelRepositoryInterface; |
@@ -27,6 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param string $value |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function setValue($value); |
32 | 33 | } |
@@ -75,7 +75,7 @@ |
||
75 | 75 | * @param ReviewInterface $review |
76 | 76 | * @param ReviewableInterface[] $reviewSubjectsToRecalculate |
77 | 77 | * |
78 | - * @return array |
|
78 | + * @return ReviewableInterface[] |
|
79 | 79 | */ |
80 | 80 | private function removeReviewsAndExtractSubject(ReviewInterface $review, array $reviewSubjectsToRecalculate) |
81 | 81 | { |
@@ -12,9 +12,9 @@ |
||
12 | 12 | namespace spec\Sylius\Component\Review\Model; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | +use Sylius\Component\Review\Model\ReviewInterface; |
|
15 | 16 | use Sylius\Component\Review\Model\ReviewableInterface; |
16 | 17 | use Sylius\Component\Review\Model\ReviewerInterface; |
17 | -use Sylius\Component\Review\Model\ReviewInterface; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @author Mateusz Zalewski <[email protected]> |
@@ -27,6 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param string $value |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function setValue($value); |
32 | 33 | } |
@@ -22,7 +22,6 @@ |
||
22 | 22 | use Sylius\Component\Order\Model\OrderItemInterface; |
23 | 23 | use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
24 | 24 | use Sylius\Component\Order\Modifier\OrderModifierInterface; |
25 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
26 | 25 | use Symfony\Component\Form\FormFactoryInterface; |
27 | 26 | use Symfony\Component\HttpFoundation\RedirectResponse; |
28 | 27 | use Symfony\Component\HttpFoundation\Request; |
@@ -11,8 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\PromotionBundle\Form\Type; |
13 | 13 | |
14 | -use Sylius\Bundle\PromotionBundle\Form\EventListener\BuildPromotionRuleFormSubscriber; |
|
15 | -use Sylius\Bundle\PromotionBundle\Form\Type\Core\AbstractConfigurationType; |
|
16 | 14 | use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; |
17 | 15 | use Sylius\Component\Promotion\Checker\Rule\ItemTotalRuleChecker; |
18 | 16 | use Sylius\Component\Registry\ServiceRegistryInterface; |