@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Sylius\Behat\Service\Accessor; |
6 | 6 |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | } |
185 | 185 | } |
186 | 186 | } |
187 | -EOT; |
|
187 | +eot; |
|
188 | 188 | |
189 | 189 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
190 | 190 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | { |
205 | 205 | "code": "fluffy_pets" |
206 | 206 | } |
207 | -EOT; |
|
207 | +eot; |
|
208 | 208 | |
209 | 209 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
210 | 210 | |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | } |
238 | 238 | } |
239 | 239 | } |
240 | -EOT; |
|
240 | +eot; |
|
241 | 241 | |
242 | 242 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
243 | 243 | |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | "code": "horror", |
261 | 261 | "parent": "books" |
262 | 262 | } |
263 | -EOT; |
|
263 | +eot; |
|
264 | 264 | |
265 | 265 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
266 | 266 | |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | } |
302 | 302 | ] |
303 | 303 | } |
304 | -EOT; |
|
304 | +eot; |
|
305 | 305 | |
306 | 306 | $this->client->request('POST', '/api/v1/taxons/', [], [ |
307 | 307 | 'images' => [ |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | }, |
336 | 336 | "parent": "books" |
337 | 337 | } |
338 | -EOT; |
|
338 | +eot; |
|
339 | 339 | $this->client->request('PUT', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
340 | 340 | $response = $this->client->getResponse(); |
341 | 341 | |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | } |
363 | 363 | } |
364 | 364 | } |
365 | -EOT; |
|
365 | +eot; |
|
366 | 366 | $this->client->request('PUT', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
367 | 367 | $response = $this->client->getResponse(); |
368 | 368 | |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | } |
390 | 390 | } |
391 | 391 | } |
392 | -EOT; |
|
392 | +eot; |
|
393 | 393 | $this->client->request('PATCH', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
394 | 394 | $response = $this->client->getResponse(); |
395 | 395 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | } |
416 | 416 | } |
417 | 417 | } |
418 | -EOT; |
|
418 | +eot; |
|
419 | 419 | $this->client->request('PATCH', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
420 | 420 | $response = $this->client->getResponse(); |
421 | 421 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | } |
462 | 462 | ] |
463 | 463 | } |
464 | -EOT; |
|
464 | +eot; |
|
465 | 465 | |
466 | 466 | $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
467 | 467 | |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | } |
492 | 492 | ] |
493 | 493 | } |
494 | -EOT; |
|
494 | +eot; |
|
495 | 495 | |
496 | 496 | $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
497 | 497 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | } |
85 | 85 | ] |
86 | 86 | } |
87 | -EOT; |
|
87 | +eot; |
|
88 | 88 | |
89 | 89 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
90 | 90 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | } |
175 | 175 | ] |
176 | 176 | } |
177 | -EOT; |
|
177 | +eot; |
|
178 | 178 | |
179 | 179 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
180 | 180 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | } |
216 | 216 | ] |
217 | 217 | } |
218 | -EOT; |
|
218 | +eot; |
|
219 | 219 | |
220 | 220 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
221 | 221 |
@@ -20,8 +20,14 @@ discard block |
||
20 | 20 | */ |
21 | 21 | interface UpdatePageInterface extends BaseUpdatePageInterface |
22 | 22 | { |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function enable(); |
24 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
25 | 31 | public function disable(); |
26 | 32 | |
27 | 33 | /** |
@@ -47,28 +53,36 @@ discard block |
||
47 | 53 | * @param string $name |
48 | 54 | * @param string $code |
49 | 55 | * @param string|null $abbreviation |
56 | + * @return void |
|
50 | 57 | */ |
51 | 58 | public function addProvince($name, $code, $abbreviation = null); |
52 | 59 | |
53 | 60 | /** |
54 | 61 | * @param string $provinceName |
62 | + * @return void |
|
55 | 63 | */ |
56 | 64 | public function removeProvince($provinceName); |
57 | 65 | |
66 | + /** |
|
67 | + * @return void |
|
68 | + */ |
|
58 | 69 | public function clickAddProvinceButton(); |
59 | 70 | |
60 | 71 | /** |
61 | 72 | * @param string $provinceName |
73 | + * @return void |
|
62 | 74 | */ |
63 | 75 | public function nameProvince($provinceName); |
64 | 76 | |
65 | 77 | /** |
66 | 78 | * @param string $provinceName |
79 | + * @return void |
|
67 | 80 | */ |
68 | 81 | public function removeProvinceName($provinceName); |
69 | 82 | |
70 | 83 | /** |
71 | 84 | * @param string $provinceCode |
85 | + * @return void |
|
72 | 86 | */ |
73 | 87 | public function specifyProvinceCode($provinceCode); |
74 | 88 | } |
@@ -20,8 +20,14 @@ discard block |
||
20 | 20 | */ |
21 | 21 | interface UpdatePageInterface extends BaseUpdatePageInterface |
22 | 22 | { |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function enable(); |
24 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
25 | 31 | public function disable(); |
26 | 32 | |
27 | 33 | /** |
@@ -36,6 +42,7 @@ discard block |
||
36 | 42 | |
37 | 43 | /** |
38 | 44 | * @param string $exchangeRate |
45 | + * @return void |
|
39 | 46 | */ |
40 | 47 | public function changeExchangeRate($exchangeRate); |
41 | 48 |
@@ -20,8 +20,14 @@ discard block |
||
20 | 20 | */ |
21 | 21 | interface UpdatePageInterface extends BaseUpdatePageInterface |
22 | 22 | { |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function enable(); |
24 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
25 | 31 | public function disable(); |
26 | 32 | |
27 | 33 | /** |
@@ -31,6 +37,7 @@ discard block |
||
31 | 37 | |
32 | 38 | /** |
33 | 39 | * @param string $firstName |
40 | + * @return void |
|
34 | 41 | */ |
35 | 42 | public function changeFirstName($firstName); |
36 | 43 | |
@@ -41,6 +48,7 @@ discard block |
||
41 | 48 | |
42 | 49 | /** |
43 | 50 | * @param string $lastName |
51 | + * @return void |
|
44 | 52 | */ |
45 | 53 | public function changeLastName($lastName); |
46 | 54 | |
@@ -51,11 +59,13 @@ discard block |
||
51 | 59 | |
52 | 60 | /** |
53 | 61 | * @param string $email |
62 | + * @return void |
|
54 | 63 | */ |
55 | 64 | public function changeEmail($email); |
56 | 65 | |
57 | 66 | /** |
58 | 67 | * @param string $password |
68 | + * @return void |
|
59 | 69 | */ |
60 | 70 | public function changePassword($password); |
61 | 71 | |
@@ -64,6 +74,9 @@ discard block |
||
64 | 74 | */ |
65 | 75 | public function getPassword(); |
66 | 76 | |
77 | + /** |
|
78 | + * @return void |
|
79 | + */ |
|
67 | 80 | public function subscribeToTheNewsletter(); |
68 | 81 | |
69 | 82 | /** |
@@ -44,6 +44,7 @@ |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * {@inheritdoc} |
47 | + * @param string $addressType |
|
47 | 48 | */ |
48 | 49 | private function specifyAddress(AddressInterface $address, $addressType) |
49 | 50 | { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\Order; |
15 | 15 |
@@ -20,60 +20,76 @@ |
||
20 | 20 | */ |
21 | 21 | interface CreatePageInterface extends BaseCreatePageInterface |
22 | 22 | { |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function enable(); |
24 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
25 | 31 | public function disable(); |
26 | 32 | |
27 | 33 | /** |
28 | 34 | * @param string $name |
29 | 35 | * @param string $languageCode |
36 | + * @return void |
|
30 | 37 | */ |
31 | 38 | public function nameIt($name, $languageCode); |
32 | 39 | |
33 | 40 | /** |
34 | 41 | * @param string $code |
42 | + * @return void |
|
35 | 43 | */ |
36 | 44 | public function specifyCode($code); |
37 | 45 | |
38 | 46 | /** |
39 | 47 | * @param string $channelName |
48 | + * @return void |
|
40 | 49 | */ |
41 | 50 | public function checkChannel($channelName); |
42 | 51 | |
43 | 52 | /** |
44 | 53 | * @param string $description |
45 | 54 | * @param string $languageCode |
55 | + * @return void |
|
46 | 56 | */ |
47 | 57 | public function describeIt($description, $languageCode); |
48 | 58 | |
49 | 59 | /** |
50 | 60 | * @param string $instructions |
51 | 61 | * @param string $languageCode |
62 | + * @return void |
|
52 | 63 | */ |
53 | 64 | public function setInstructions($instructions, $languageCode); |
54 | 65 | |
55 | 66 | /** |
56 | 67 | * @param string $username |
68 | + * @return void |
|
57 | 69 | */ |
58 | 70 | public function setPaypalGatewayUsername($username); |
59 | 71 | |
60 | 72 | /** |
61 | 73 | * @param string $password |
74 | + * @return void |
|
62 | 75 | */ |
63 | 76 | public function setPaypalGatewayPassword($password); |
64 | 77 | |
65 | 78 | /** |
66 | 79 | * @param string $signature |
80 | + * @return void |
|
67 | 81 | */ |
68 | 82 | public function setPaypalGatewaySignature($signature); |
69 | 83 | |
70 | 84 | /** |
71 | 85 | * @param string $secretKey |
86 | + * @return void |
|
72 | 87 | */ |
73 | 88 | public function setStripeSecretKey($secretKey); |
74 | 89 | |
75 | 90 | /** |
76 | 91 | * @param string $publishableKey |
92 | + * @return void |
|
77 | 93 | */ |
78 | 94 | public function setStripePublishableKey($publishableKey); |
79 | 95 |
@@ -20,28 +20,38 @@ |
||
20 | 20 | */ |
21 | 21 | interface UpdatePageInterface extends BaseUpdatePageInterface |
22 | 22 | { |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function enable(); |
24 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
25 | 31 | public function disable(); |
26 | 32 | |
27 | 33 | /** |
28 | 34 | * @param string $name |
29 | 35 | * @param string $languageCode |
36 | + * @return void |
|
30 | 37 | */ |
31 | 38 | public function nameIt($name, $languageCode); |
32 | 39 | |
33 | 40 | /** |
34 | 41 | * @param string $username |
42 | + * @return void |
|
35 | 43 | */ |
36 | 44 | public function setPaypalGatewayUsername($username); |
37 | 45 | |
38 | 46 | /** |
39 | 47 | * @param string $password |
48 | + * @return void |
|
40 | 49 | */ |
41 | 50 | public function setPaypalGatewayPassword($password); |
42 | 51 | |
43 | 52 | /** |
44 | 53 | * @param string $signature |
54 | + * @return void |
|
45 | 55 | */ |
46 | 56 | public function setPaypalGatewaySignature($signature); |
47 | 57 |