@@ -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; |
@@ -24,7 +24,6 @@ |
||
24 | 24 | use Sylius\Component\Promotion\Action\PromotionActionInterface; |
25 | 25 | use Sylius\Component\Promotion\Model\PromotionInterface; |
26 | 26 | use Sylius\Component\Promotion\Model\PromotionSubjectInterface; |
27 | -use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
|
28 | 27 | |
29 | 28 | /** |
30 | 29 | * @mixin PercentageDiscountAction |
@@ -18,5 +18,8 @@ |
||
18 | 18 | */ |
19 | 19 | interface PasswordUpdaterInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function updatePassword(CredentialsHolderInterface $user); |
22 | 25 | } |
@@ -32,6 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @param null|\DateTime $checkoutCompletedAt |
35 | + * @return void |
|
35 | 36 | */ |
36 | 37 | public function setCheckoutCompletedAt(\DateTime $checkoutCompletedAt = null); |
37 | 38 | |
@@ -40,6 +41,9 @@ discard block |
||
40 | 41 | */ |
41 | 42 | public function isCheckoutCompleted(); |
42 | 43 | |
44 | + /** |
|
45 | + * @return void |
|
46 | + */ |
|
43 | 47 | public function completeCheckout(); |
44 | 48 | |
45 | 49 | /** |
@@ -49,6 +53,7 @@ discard block |
||
49 | 53 | |
50 | 54 | /** |
51 | 55 | * @param string |
56 | + * @return void |
|
52 | 57 | */ |
53 | 58 | public function setNumber($number); |
54 | 59 | |
@@ -59,6 +64,7 @@ discard block |
||
59 | 64 | |
60 | 65 | /** |
61 | 66 | * @param string $notes |
67 | + * @return void |
|
62 | 68 | */ |
63 | 69 | public function setNotes($notes); |
64 | 70 | |
@@ -67,6 +73,9 @@ discard block |
||
67 | 73 | */ |
68 | 74 | public function getItems(); |
69 | 75 | |
76 | + /** |
|
77 | + * @return void |
|
78 | + */ |
|
70 | 79 | public function clearItems(); |
71 | 80 | |
72 | 81 | /** |
@@ -76,11 +85,13 @@ discard block |
||
76 | 85 | |
77 | 86 | /** |
78 | 87 | * @param OrderItemInterface $item |
88 | + * @return void |
|
79 | 89 | */ |
80 | 90 | public function addItem(OrderItemInterface $item); |
81 | 91 | |
82 | 92 | /** |
83 | 93 | * @param OrderItemInterface $item |
94 | + * @return void |
|
84 | 95 | */ |
85 | 96 | public function removeItem(OrderItemInterface $item); |
86 | 97 | |
@@ -96,6 +107,9 @@ discard block |
||
96 | 107 | */ |
97 | 108 | public function getItemsTotal(); |
98 | 109 | |
110 | + /** |
|
111 | + * @return void |
|
112 | + */ |
|
99 | 113 | public function recalculateItemsTotal(); |
100 | 114 | |
101 | 115 | /** |
@@ -115,6 +129,7 @@ discard block |
||
115 | 129 | |
116 | 130 | /** |
117 | 131 | * @param string $state |
132 | + * @return void |
|
118 | 133 | */ |
119 | 134 | public function setState($state); |
120 | 135 | |
@@ -139,6 +154,7 @@ discard block |
||
139 | 154 | |
140 | 155 | /** |
141 | 156 | * @param string|null $type |
157 | + * @return void |
|
142 | 158 | */ |
143 | 159 | public function removeAdjustmentsRecursively($type = null); |
144 | 160 | } |
@@ -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 | } |
@@ -36,11 +36,13 @@ discard block |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * @param string $locale |
39 | + * @return void |
|
39 | 40 | */ |
40 | 41 | public function setCurrentLocale($locale); |
41 | 42 | |
42 | 43 | /** |
43 | 44 | * @param string $locale |
45 | + * @return void |
|
44 | 46 | */ |
45 | 47 | public function setFallbackLocale($locale); |
46 | 48 | |
@@ -51,11 +53,13 @@ discard block |
||
51 | 53 | |
52 | 54 | /** |
53 | 55 | * @param TranslationInterface $translation |
56 | + * @return void |
|
54 | 57 | */ |
55 | 58 | public function addTranslation(TranslationInterface $translation); |
56 | 59 | |
57 | 60 | /** |
58 | 61 | * @param TranslationInterface $translation |
62 | + * @return void |
|
59 | 63 | */ |
60 | 64 | public function removeTranslation(TranslationInterface $translation); |
61 | 65 | } |
@@ -65,8 +65,7 @@ |
||
65 | 65 | |
66 | 66 | function is_configures_options( |
67 | 67 | OptionsResolver $resolver |
68 | - ) |
|
69 | - { |
|
68 | + ) { |
|
70 | 69 | $resolver->setDefaults([ |
71 | 70 | 'format' => 'Y:m:d H:i:s' |
72 | 71 | ])->shouldBeCalled(); |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @param int $length |
|
37 | - * @return string |
|
38 | - */ |
|
36 | + * @param int $length |
|
37 | + * @return string |
|
38 | + */ |
|
39 | 39 | public function generate($length) |
40 | 40 | { |
41 | 41 | $token = ''; |
@@ -49,11 +49,11 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
52 | - * @param int $min |
|
53 | - * @param int $max |
|
52 | + * @param int $min |
|
53 | + * @param int $max |
|
54 | 54 | * |
55 | - * @return int |
|
56 | - */ |
|
55 | + * @return int |
|
56 | + */ |
|
57 | 57 | private function getRandomInteger($min, $max) |
58 | 58 | { |
59 | 59 | $range = ($max - $min); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | public function cancel() |
55 | 55 | { |
56 | - $expiredUnpaidOrders = $this->orderRepository->findOrdersUnpaidSince(new \DateTime('-'.$this->expirationPeriod)); |
|
56 | + $expiredUnpaidOrders = $this->orderRepository->findOrdersUnpaidSince(new \DateTime('-' . $this->expirationPeriod)); |
|
57 | 57 | foreach ($expiredUnpaidOrders as $expiredUnpaidOrder) { |
58 | 58 | $this->cancelOrder($expiredUnpaidOrder); |
59 | 59 | } |