@@ -44,6 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @param AddressInterface $address |
47 | + * @return void |
|
47 | 48 | */ |
48 | 49 | public function setShippingAddress(AddressInterface $address); |
49 | 50 | |
@@ -54,6 +55,7 @@ discard block |
||
54 | 55 | |
55 | 56 | /** |
56 | 57 | * @param AddressInterface $address |
58 | + * @return void |
|
57 | 59 | */ |
58 | 60 | public function setBillingAddress(AddressInterface $address); |
59 | 61 | |
@@ -64,6 +66,7 @@ discard block |
||
64 | 66 | |
65 | 67 | /** |
66 | 68 | * @param string $checkoutState |
69 | + * @return void |
|
67 | 70 | */ |
68 | 71 | public function setCheckoutState($checkoutState); |
69 | 72 | |
@@ -74,6 +77,7 @@ discard block |
||
74 | 77 | |
75 | 78 | /** |
76 | 79 | * @param string $paymentState |
80 | + * @return void |
|
77 | 81 | */ |
78 | 82 | public function setPaymentState($paymentState); |
79 | 83 | |
@@ -101,14 +105,19 @@ discard block |
||
101 | 105 | |
102 | 106 | /** |
103 | 107 | * @param ShipmentInterface $shipment |
108 | + * @return void |
|
104 | 109 | */ |
105 | 110 | public function addShipment(ShipmentInterface $shipment); |
106 | 111 | |
107 | 112 | /** |
108 | 113 | * @param ShipmentInterface $shipment |
114 | + * @return void |
|
109 | 115 | */ |
110 | 116 | public function removeShipment(ShipmentInterface $shipment); |
111 | 117 | |
118 | + /** |
|
119 | + * @return void |
|
120 | + */ |
|
112 | 121 | public function removeShipments(); |
113 | 122 | |
114 | 123 | /** |
@@ -127,6 +136,7 @@ discard block |
||
127 | 136 | * @param string |
128 | 137 | * |
129 | 138 | * @throws \InvalidArgumentException |
139 | + * @return void |
|
130 | 140 | */ |
131 | 141 | public function setCurrencyCode($currencyCode); |
132 | 142 | |
@@ -137,6 +147,7 @@ discard block |
||
137 | 147 | |
138 | 148 | /** |
139 | 149 | * @param float $exchangeRate |
150 | + * @return void |
|
140 | 151 | */ |
141 | 152 | public function setExchangeRate($exchangeRate); |
142 | 153 | |
@@ -149,11 +160,13 @@ discard block |
||
149 | 160 | |
150 | 161 | /** |
151 | 162 | * @param string |
163 | + * @return void |
|
152 | 164 | */ |
153 | 165 | public function setLocaleCode($localeCode); |
154 | 166 | |
155 | 167 | /** |
156 | 168 | * @param BaseCouponInterface $coupon |
169 | + * @return void |
|
157 | 170 | */ |
158 | 171 | public function setPromotionCoupon(BaseCouponInterface $coupon = null); |
159 | 172 | |
@@ -164,6 +177,7 @@ discard block |
||
164 | 177 | |
165 | 178 | /** |
166 | 179 | * @param string $state |
180 | + * @return void |
|
167 | 181 | */ |
168 | 182 | public function setShippingState($state); |
169 | 183 | |
@@ -194,6 +208,7 @@ discard block |
||
194 | 208 | |
195 | 209 | /** |
196 | 210 | * @param string $tokenValue |
211 | + * @return void |
|
197 | 212 | */ |
198 | 213 | public function setTokenValue($tokenValue); |
199 | 214 |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @param $id |
|
46 | + * @param string $id |
|
47 | 47 | * |
48 | 48 | * @return object |
49 | 49 | */ |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @param array $headers |
|
72 | + * @param string[] $headers |
|
73 | 73 | * @param array $rows |
74 | 74 | * @param OutputInterface $output |
75 | 75 | */ |
@@ -13,11 +13,8 @@ |
||
13 | 13 | |
14 | 14 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
15 | 15 | use Symfony\Component\Console\Helper\ProgressBar; |
16 | -use Symfony\Component\Console\Helper\QuestionHelper; |
|
17 | 16 | use Symfony\Component\Console\Input\InputInterface; |
18 | 17 | use Symfony\Component\Console\Output\OutputInterface; |
19 | -use Symfony\Component\Console\Question\Question; |
|
20 | -use Symfony\Component\Validator\ConstraintViolationList; |
|
21 | 18 | |
22 | 19 | abstract class AbstractInstallCommand extends ContainerAwareCommand |
23 | 20 | { |
@@ -20,9 +20,9 @@ |
||
20 | 20 | use Symfony\Component\Console\Output\OutputInterface; |
21 | 21 | use Symfony\Component\Console\Question\Question; |
22 | 22 | use Symfony\Component\Intl\Intl; |
23 | +use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
23 | 24 | use Symfony\Component\Validator\Constraints\Email; |
24 | 25 | use Symfony\Component\Validator\Constraints\NotBlank; |
25 | -use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | { |
167 | 167 | $this->questionHelper = $this->command->getHelper('question'); |
168 | 168 | $inputString = implode(PHP_EOL, $this->inputChoices); |
169 | - $this->questionHelper->setInputStream($this->getInputStream($inputString.PHP_EOL)); |
|
169 | + $this->questionHelper->setInputStream($this->getInputStream($inputString . PHP_EOL)); |
|
170 | 170 | |
171 | 171 | $this->tester->execute(['command' => $name]); |
172 | 172 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | private function iExecuteCommandAndConfirm($name) |
178 | 178 | { |
179 | 179 | $this->questionHelper = $this->command->getHelper('question'); |
180 | - $inputString = 'y'.PHP_EOL; |
|
180 | + $inputString = 'y' . PHP_EOL; |
|
181 | 181 | $this->questionHelper->setInputStream($this->getInputStream($inputString)); |
182 | 182 | |
183 | 183 | $this->tester->execute(['command' => $name]); |
@@ -20,7 +20,6 @@ |
||
20 | 20 | use Sylius\Behat\Service\SharedSecurityServiceInterface; |
21 | 21 | use Sylius\Behat\Service\SharedStorageInterface; |
22 | 22 | use Sylius\Component\Addressing\Model\AddressInterface; |
23 | -use Sylius\Component\Core\Formatter\StringInflector; |
|
24 | 23 | use Sylius\Component\Core\Model\AdminUserInterface; |
25 | 24 | use Sylius\Component\Core\Model\CustomerInterface; |
26 | 25 | use Sylius\Component\Core\Model\OrderInterface; |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | $itemsCount = $this->showPage->countItems(); |
243 | 243 | |
244 | 244 | Assert::same( |
245 | - (int)$amount, |
|
245 | + (int) $amount, |
|
246 | 246 | $itemsCount, |
247 | 247 | sprintf('There should be %d items, but get %d.', $amount, $itemsCount) |
248 | 248 | ); |
@@ -721,7 +721,7 @@ discard block |
||
721 | 721 | { |
722 | 722 | $actualNumberOfPayments = $this->showPage->getPaymentsCount(); |
723 | 723 | |
724 | - Assert::same((int)$number, $actualNumberOfPayments); |
|
724 | + Assert::same((int) $number, $actualNumberOfPayments); |
|
725 | 725 | } |
726 | 726 | |
727 | 727 | /** |
@@ -14,31 +14,30 @@ |
||
14 | 14 | use Behat\Behat\Context\Context; |
15 | 15 | use Doctrine\Common\Persistence\ObjectManager; |
16 | 16 | use SM\Factory\FactoryInterface as StateMachineFactoryInterface; |
17 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
17 | 18 | use Sylius\Component\Core\Currency\CurrencyStorageInterface; |
19 | +use Sylius\Component\Core\Model\AddressInterface; |
|
18 | 20 | use Sylius\Component\Core\Model\ChannelInterface; |
19 | 21 | use Sylius\Component\Core\Model\ChannelPricingInterface; |
20 | -use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
21 | -use Sylius\Component\Core\OrderCheckoutTransitions; |
|
22 | -use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
23 | -use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
24 | -use Sylius\Component\Core\Model\AddressInterface; |
|
25 | 22 | use Sylius\Component\Core\Model\OrderInterface; |
26 | 23 | use Sylius\Component\Core\Model\OrderItemInterface; |
27 | 24 | use Sylius\Component\Core\Model\ProductInterface; |
28 | 25 | use Sylius\Component\Core\Model\ProductVariantInterface; |
26 | +use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
29 | 27 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
28 | +use Sylius\Component\Core\OrderCheckoutTransitions; |
|
30 | 29 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
31 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
30 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
31 | +use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
32 | 32 | use Sylius\Component\Order\OrderTransitions; |
33 | -use Sylius\Component\Payment\Model\PaymentInterface; |
|
33 | +use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
34 | 34 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
35 | 35 | use Sylius\Component\Payment\PaymentTransitions; |
36 | +use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
36 | 37 | use Sylius\Component\Resource\Factory\FactoryInterface; |
37 | 38 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
38 | 39 | use Sylius\Component\Shipping\ShipmentTransitions; |
39 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
40 | 40 | use Sylius\Component\User\Model\UserInterface; |
41 | -use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
42 | 41 | |
43 | 42 | /** |
44 | 43 | * @author Łukasz Chruściel <[email protected]> |
@@ -39,6 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @param string $email |
42 | + * @return void |
|
42 | 43 | */ |
43 | 44 | public function setEmail($email); |
44 | 45 | |
@@ -51,6 +52,7 @@ discard block |
||
51 | 52 | |
52 | 53 | /** |
53 | 54 | * @param string $emailCanonical |
55 | + * @return void |
|
54 | 56 | */ |
55 | 57 | public function setEmailCanonical($emailCanonical); |
56 | 58 | |
@@ -61,11 +63,13 @@ discard block |
||
61 | 63 | |
62 | 64 | /** |
63 | 65 | * @param CustomerInterface $customer |
66 | + * @return void |
|
64 | 67 | */ |
65 | 68 | public function setCustomer(CustomerInterface $customer = null); |
66 | 69 | |
67 | 70 | /** |
68 | 71 | * @param string $username |
72 | + * @return void |
|
69 | 73 | */ |
70 | 74 | public function setUsername($username); |
71 | 75 | |
@@ -78,11 +82,13 @@ discard block |
||
78 | 82 | |
79 | 83 | /** |
80 | 84 | * @param string $usernameCanonical |
85 | + * @return void |
|
81 | 86 | */ |
82 | 87 | public function setUsernameCanonical($usernameCanonical); |
83 | 88 | |
84 | 89 | /** |
85 | 90 | * @param bool $locked |
91 | + * @return void |
|
86 | 92 | */ |
87 | 93 | public function setLocked($locked); |
88 | 94 | |
@@ -93,6 +99,7 @@ discard block |
||
93 | 99 | |
94 | 100 | /** |
95 | 101 | * @param string $confirmationToken |
102 | + * @return void |
|
96 | 103 | */ |
97 | 104 | public function setConfirmationToken($confirmationToken); |
98 | 105 | |
@@ -100,6 +107,7 @@ discard block |
||
100 | 107 | * Sets the timestamp that the user requested a password reset. |
101 | 108 | * |
102 | 109 | * @param null|\DateTime $date |
110 | + * @return void |
|
103 | 111 | */ |
104 | 112 | public function setPasswordRequestedAt(\DateTime $date = null); |
105 | 113 | |
@@ -114,6 +122,7 @@ discard block |
||
114 | 122 | |
115 | 123 | /** |
116 | 124 | * @param \DateTime $date |
125 | + * @return void |
|
117 | 126 | */ |
118 | 127 | public function setCredentialsExpireAt(\DateTime $date = null); |
119 | 128 | |
@@ -124,6 +133,7 @@ discard block |
||
124 | 133 | |
125 | 134 | /** |
126 | 135 | * @param \DateTime $time |
136 | + * @return void |
|
127 | 137 | */ |
128 | 138 | public function setLastLogin(\DateTime $time = null); |
129 | 139 | |
@@ -145,16 +155,19 @@ discard block |
||
145 | 155 | * This overwrites any previous roles. |
146 | 156 | * |
147 | 157 | * @param array $roles |
158 | + * @return void |
|
148 | 159 | */ |
149 | 160 | public function setRoles(array $roles); |
150 | 161 | |
151 | 162 | /** |
152 | 163 | * @param string $role |
164 | + * @return void |
|
153 | 165 | */ |
154 | 166 | public function addRole($role); |
155 | 167 | |
156 | 168 | /** |
157 | 169 | * @param string $role |
170 | + * @return void |
|
158 | 171 | */ |
159 | 172 | public function removeRole($role); |
160 | 173 | |
@@ -178,6 +191,7 @@ discard block |
||
178 | 191 | * Connects OAuth account. |
179 | 192 | * |
180 | 193 | * @param UserOAuthInterface $oauth |
194 | + * @return void |
|
181 | 195 | */ |
182 | 196 | public function addOAuthAccount(UserOAuthInterface $oauth); |
183 | 197 | } |
@@ -13,8 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Behat\Mink\Driver\Selenium2Driver; |
15 | 15 | use Behat\Mink\Exception\ElementNotFoundException; |
16 | -use Sylius\Behat\Behaviour\ChoosesCalculator; |
|
17 | -use Sylius\Behat\Behaviour\SpecifiesItsAmount; |
|
18 | 16 | use Sylius\Behat\Behaviour\SpecifiesItsCode; |
19 | 17 | use Sylius\Behat\Page\Admin\Crud\CreatePage as BaseCreatePage; |
20 | 18 | use Sylius\Component\Core\Formatter\StringInflector; |
@@ -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 | } |