@@ -14,10 +14,7 @@ |
||
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | 15 | use Prophecy\Argument; |
16 | 16 | use Sylius\Bundle\CoreBundle\EventListener\OrderPromotionListener; |
17 | -use Sylius\Component\Core\Model\OrderInterface; |
|
18 | -use Sylius\Component\Promotion\Processor\PromotionProcessorInterface; |
|
19 | 17 | use Sylius\Component\Promotion\SyliusPromotionEvents; |
20 | -use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
|
21 | 18 | use Symfony\Component\EventDispatcher\GenericEvent; |
22 | 19 | use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; |
23 | 20 | use Symfony\Component\HttpFoundation\Session\SessionInterface; |
@@ -11,18 +11,10 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\Sylius\Bundle\CoreBundle\EventListener; |
13 | 13 | |
14 | -use Doctrine\Common\Collections\ArrayCollection; |
|
15 | 14 | use PhpSpec\ObjectBehavior; |
16 | -use Prophecy\Argument; |
|
17 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
18 | 15 | use Sylius\Component\Core\Model\OrderInterface; |
19 | -use Sylius\Component\Core\Model\OrderItemInterface; |
|
20 | 16 | use Sylius\Component\Core\OrderProcessing\OrderRecalculatorInterface; |
21 | -use Sylius\Component\Core\OrderProcessing\OrderShipmentProcessorInterface; |
|
22 | -use Sylius\Component\Pricing\Calculator\DelegatingCalculatorInterface; |
|
23 | -use Sylius\Component\Pricing\Model\PriceableInterface; |
|
24 | 17 | use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
25 | -use Sylius\Component\User\Model\GroupableInterface; |
|
26 | 18 | use Symfony\Component\EventDispatcher\GenericEvent; |
27 | 19 | |
28 | 20 | /** |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | 15 | use Prophecy\Argument; |
16 | -use spec\Sylius\Bundle\ArchetypeBundle\Form\Type\ArchetypeTypeSpec; |
|
17 | 16 | use Sylius\Component\Payment\Model\PaymentInterface; |
18 | 17 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
19 | 18 | use Symfony\Component\Form\FormEvent; |
@@ -12,8 +12,6 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\CoreBundle\Form\Type\Checkout; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | -use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; |
|
17 | 15 | use Symfony\Component\Form\AbstractType; |
18 | 16 | use Symfony\Component\Form\FormBuilderInterface; |
19 | 17 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -12,9 +12,7 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\CoreBundle\Form\Type\Checkout; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | 15 | use Sylius\Bundle\CoreBundle\Form\Type\Checkout\ShippingType; |
17 | -use Sylius\Component\Addressing\Matcher\ZoneMatcherInterface; |
|
18 | 16 | use Symfony\Component\Form\AbstractType; |
19 | 17 | use Symfony\Component\Form\FormBuilderInterface; |
20 | 18 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | 15 | use Prophecy\Argument; |
16 | 16 | use Sylius\Bundle\CoreBundle\Form\Type\LegacyProductType; |
17 | -use Sylius\Bundle\ProductBundle\Form\Type\ProductType; |
|
18 | 17 | use Sylius\Bundle\ResourceBundle\Form\EventSubscriber\AddCodeFormSubscriber; |
19 | 18 | use Sylius\Component\Core\Model\Product; |
20 | 19 | use Sylius\Component\User\Canonicalizer\CanonicalizerInterface; |
@@ -12,9 +12,8 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\CoreBundle\Provider; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | -use Sylius\Component\Resource\Provider\AvailableLocalesProviderInterface; |
|
17 | 15 | use Sylius\Component\Locale\Model\LocaleInterface; |
16 | +use Sylius\Component\Resource\Provider\AvailableLocalesProviderInterface; |
|
18 | 17 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
19 | 18 | |
20 | 19 | /** |
@@ -67,7 +67,7 @@ |
||
67 | 67 | * |
68 | 68 | * @throws \RuntimeException |
69 | 69 | * |
70 | - * @return string |
|
70 | + * @return integer |
|
71 | 71 | */ |
72 | 72 | private function tryToMapPaymentMethodName($paymentMethodName) |
73 | 73 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * Add a step with given name. |
37 | 37 | * |
38 | 38 | * @param string $name |
39 | - * @param string|StepInterface $step Step alias or instance |
|
39 | + * @param string $step Step alias or instance |
|
40 | 40 | * |
41 | 41 | * @return ProcessBuilderInterface |
42 | 42 | */ |
@@ -46,6 +46,7 @@ discard block |
||
46 | 46 | * Remove step with given name. |
47 | 47 | * |
48 | 48 | * @param string $name |
49 | + * @return void |
|
49 | 50 | */ |
50 | 51 | public function remove($name); |
51 | 52 | |
@@ -62,6 +63,7 @@ discard block |
||
62 | 63 | * Set display route. |
63 | 64 | * |
64 | 65 | * @param string $route |
66 | + * @return ProcessBuilder |
|
65 | 67 | */ |
66 | 68 | public function setDisplayRoute($route); |
67 | 69 | |
@@ -69,6 +71,7 @@ discard block |
||
69 | 71 | * Set additional forward route params. |
70 | 72 | * |
71 | 73 | * @param array $params |
74 | + * @return ProcessBuilder |
|
72 | 75 | */ |
73 | 76 | public function setDisplayRouteParams(array $params); |
74 | 77 | |
@@ -76,6 +79,7 @@ discard block |
||
76 | 79 | * Set forward route. |
77 | 80 | * |
78 | 81 | * @param string $route |
82 | + * @return ProcessBuilder |
|
79 | 83 | */ |
80 | 84 | public function setForwardRoute($route); |
81 | 85 | |
@@ -83,6 +87,7 @@ discard block |
||
83 | 87 | * Set additional forward route params. |
84 | 88 | * |
85 | 89 | * @param array $params |
90 | + * @return ProcessBuilder |
|
86 | 91 | */ |
87 | 92 | public function setForwardRouteParams(array $params); |
88 | 93 | |
@@ -90,6 +95,7 @@ discard block |
||
90 | 95 | * Set redirection route after completion. |
91 | 96 | * |
92 | 97 | * @param string $redirect |
98 | + * @return ProcessBuilder |
|
93 | 99 | */ |
94 | 100 | public function setRedirect($redirect); |
95 | 101 | |
@@ -97,13 +103,15 @@ discard block |
||
97 | 103 | * Set redirection route params. |
98 | 104 | * |
99 | 105 | * @param array $params |
106 | + * @return ProcessBuilder |
|
100 | 107 | */ |
101 | 108 | public function setRedirectParams(array $params); |
102 | 109 | |
103 | 110 | /** |
104 | 111 | * Validation of process, if returns false, process is suspended. |
105 | 112 | * |
106 | - * @param \Closure|ProcessValidatorInterface $validator |
|
113 | + * @param \Prophecy\Argument\Token\AnyValueToken $validator |
|
114 | + * @return ProcessBuilder |
|
107 | 115 | */ |
108 | 116 | public function validate($validator); |
109 | 117 | |
@@ -112,6 +120,7 @@ discard block |
||
112 | 120 | * |
113 | 121 | * @param string $alias |
114 | 122 | * @param StepInterface $step |
123 | + * @return void |
|
115 | 124 | */ |
116 | 125 | public function registerStep($alias, StepInterface $step); |
117 | 126 |