@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * Get flash message. |
40 | 40 | * |
41 | - * @return null|string |
|
41 | + * @return string |
|
42 | 42 | */ |
43 | 43 | public function getMessage() |
44 | 44 | { |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use SM\Factory\FactoryInterface; |
15 | 15 | use Sylius\Component\Core\Model\OrderInterface; |
16 | -use Sylius\Component\Core\OrderCheckoutTransitions; |
|
17 | 16 | use Sylius\Component\Order\Context\CartContextInterface; |
18 | 17 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
19 | 18 | use Symfony\Component\HttpFoundation\RedirectResponse; |
@@ -123,10 +123,10 @@ |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
126 | - * @param Request $request |
|
127 | - * |
|
128 | - * @return string |
|
129 | - */ |
|
126 | + * @param Request $request |
|
127 | + * |
|
128 | + * @return string |
|
129 | + */ |
|
130 | 130 | private function getRequestedTransition(Request $request) |
131 | 131 | { |
132 | 132 | return $request->attributes->get('_sylius')['state_machine']['transition']; |
@@ -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 | } |
@@ -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 | /** |
@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | */ |
46 | 46 | private function specifyAddress(AddressInterface $address, $addressType) |
47 | 47 | { |
48 | - $this->specifyElementValue($addressType.'_first_name', $address->getFirstName()); |
|
49 | - $this->specifyElementValue($addressType.'_last_name', $address->getLastName()); |
|
50 | - $this->specifyElementValue($addressType.'_street', $address->getStreet()); |
|
51 | - $this->specifyElementValue($addressType.'_city', $address->getCity()); |
|
52 | - $this->specifyElementValue($addressType.'_postcode', $address->getPostcode()); |
|
48 | + $this->specifyElementValue($addressType . '_first_name', $address->getFirstName()); |
|
49 | + $this->specifyElementValue($addressType . '_last_name', $address->getLastName()); |
|
50 | + $this->specifyElementValue($addressType . '_street', $address->getStreet()); |
|
51 | + $this->specifyElementValue($addressType . '_city', $address->getCity()); |
|
52 | + $this->specifyElementValue($addressType . '_postcode', $address->getPostcode()); |
|
53 | 53 | |
54 | 54 | $this->chooseCountry($address->getCountryCode(), $addressType); |
55 | 55 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | private function chooseCountry($country, $addressType) |
116 | 116 | { |
117 | - $this->getElement($addressType.'_country')->selectOption((null !== $country) ? $country : 'Select'); |
|
117 | + $this->getElement($addressType . '_country')->selectOption((null !== $country) ? $country : 'Select'); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
@@ -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 | } |
@@ -103,7 +103,6 @@ |
||
103 | 103 | |
104 | 104 | /** |
105 | 105 | * @param int $price |
106 | - * @param string $currencyCode |
|
107 | 106 | * |
108 | 107 | * @return float |
109 | 108 | */ |
@@ -57,33 +57,33 @@ |
||
57 | 57 | |
58 | 58 | $m = 0; |
59 | 59 | foreach ($order->getItems() as $item) { |
60 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = $item->getVariant()->getProduct()->getName(); |
|
61 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($item->getDiscountedUnitPrice()); |
|
62 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = $item->getQuantity(); |
|
60 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = $item->getVariant()->getProduct()->getName(); |
|
61 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($item->getDiscountedUnitPrice()); |
|
62 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = $item->getQuantity(); |
|
63 | 63 | |
64 | 64 | ++$m; |
65 | 65 | } |
66 | 66 | |
67 | 67 | if (0 !== $taxTotal = $order->getAdjustmentsTotalRecursively(AdjustmentInterface::TAX_ADJUSTMENT)) { |
68 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Tax Total'; |
|
69 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($taxTotal); |
|
70 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1; |
|
68 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Tax Total'; |
|
69 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($taxTotal); |
|
70 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1; |
|
71 | 71 | |
72 | 72 | ++$m; |
73 | 73 | } |
74 | 74 | |
75 | 75 | if (0 !== $promotionTotal = $order->getOrderPromotionTotal()) { |
76 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Discount'; |
|
77 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($promotionTotal); |
|
78 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1; |
|
76 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Discount'; |
|
77 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($promotionTotal); |
|
78 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1; |
|
79 | 79 | |
80 | 80 | ++$m; |
81 | 81 | } |
82 | 82 | |
83 | 83 | if (0 !== $shippingTotal = $order->getShippingTotal()) { |
84 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Shipping Total'; |
|
85 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($shippingTotal); |
|
86 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1; |
|
84 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Shipping Total'; |
|
85 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($shippingTotal); |
|
86 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | $request->setResult($details); |
@@ -27,6 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param OptionInterface $option |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function setOption(OptionInterface $option = null); |
32 | 33 | |
@@ -41,6 +42,7 @@ discard block |
||
41 | 42 | * Set internal value. |
42 | 43 | * |
43 | 44 | * @param string $value |
45 | + * @return void |
|
44 | 46 | */ |
45 | 47 | public function setValue($value); |
46 | 48 |