@@ -18,8 +18,6 @@ |
||
| 18 | 18 | use Sylius\Behat\Page\SymfonyPage; |
| 19 | 19 | use Sylius\Component\Core\Factory\AddressFactoryInterface; |
| 20 | 20 | use Sylius\Component\Core\Model\AddressInterface; |
| 21 | -use Sylius\Component\Locale\Context\LocaleContextInterface; |
|
| 22 | -use Symfony\Component\Intl\Intl; |
|
| 23 | 21 | use Symfony\Component\Routing\RouterInterface; |
| 24 | 22 | use Webmozart\Assert\Assert; |
| 25 | 23 | |
@@ -347,7 +347,7 @@ |
||
| 347 | 347 | Pagerfanta $results, |
| 348 | 348 | $template, |
| 349 | 349 | $page |
| 350 | - ){ |
|
| 350 | + ) { |
|
| 351 | 351 | $results->setCurrentPage($page, true, true); |
| 352 | 352 | $results->setMaxPerPage($this->config->getPaginationMaxPerPage()); |
| 353 | 353 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | array $parameters, |
| 48 | 48 | RouterInterface $router, |
| 49 | 49 | AddressFactoryInterface $addressFactory |
| 50 | - ){ |
|
| 50 | + ) { |
|
| 51 | 51 | parent::__construct($session, $parameters, $router); |
| 52 | 52 | |
| 53 | 53 | $this->addressFactory = $addressFactory; |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | */ |
| 413 | 413 | private function waitForElement($timeout, $elementName) |
| 414 | 414 | { |
| 415 | - return $this->getDocument()->waitFor($timeout, function () use ($elementName){ |
|
| 415 | + return $this->getDocument()->waitFor($timeout, function () use ($elementName) { |
|
| 416 | 416 | return $this->hasElement($elementName); |
| 417 | 417 | }); |
| 418 | 418 | } |
@@ -21,6 +21,7 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * @throws \RuntimeException |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function chooseDifferentBillingAddress(); |
| 26 | 27 | |
@@ -39,21 +40,25 @@ discard block |
||
| 39 | 40 | |
| 40 | 41 | /** |
| 41 | 42 | * @param AddressInterface $billingAddress |
| 43 | + * @return void |
|
| 42 | 44 | */ |
| 43 | 45 | public function specifyBillingAddress(AddressInterface $billingAddress); |
| 44 | 46 | |
| 45 | 47 | /** |
| 46 | 48 | * @param string $province |
| 49 | + * @return void |
|
| 47 | 50 | */ |
| 48 | 51 | public function selectBillingAddressProvince($province); |
| 49 | 52 | |
| 50 | 53 | /** |
| 51 | 54 | * @param AddressInterface $shippingAddress |
| 55 | + * @return void |
|
| 52 | 56 | */ |
| 53 | 57 | public function specifyShippingAddress(AddressInterface $shippingAddress); |
| 54 | 58 | |
| 55 | 59 | /** |
| 56 | 60 | * @param string $province |
| 61 | + * @return void |
|
| 57 | 62 | */ |
| 58 | 63 | public function selectShippingAddressProvince($province); |
| 59 | 64 | |
@@ -62,15 +67,20 @@ discard block |
||
| 62 | 67 | */ |
| 63 | 68 | public function canSignIn(); |
| 64 | 69 | |
| 70 | + /** |
|
| 71 | + * @return void |
|
| 72 | + */ |
|
| 65 | 73 | public function signIn(); |
| 66 | 74 | |
| 67 | 75 | /** |
| 68 | 76 | * @param string $email |
| 77 | + * @return void |
|
| 69 | 78 | */ |
| 70 | 79 | public function specifyEmail($email); |
| 71 | 80 | |
| 72 | 81 | /** |
| 73 | 82 | * @param string $password |
| 83 | + * @return void |
|
| 74 | 84 | */ |
| 75 | 85 | public function specifyPassword($password); |
| 76 | 86 | |
@@ -86,17 +96,25 @@ discard block |
||
| 86 | 96 | */ |
| 87 | 97 | public function getShippingAddressCountry(); |
| 88 | 98 | |
| 99 | + /** |
|
| 100 | + * @return void |
|
| 101 | + */ |
|
| 89 | 102 | public function nextStep(); |
| 90 | 103 | |
| 104 | + /** |
|
| 105 | + * @return void |
|
| 106 | + */ |
|
| 91 | 107 | public function backToStore(); |
| 92 | 108 | |
| 93 | 109 | /** |
| 94 | 110 | * @param string $provinceName |
| 111 | + * @return void |
|
| 95 | 112 | */ |
| 96 | 113 | public function specifyBillingAddressProvince($provinceName); |
| 97 | 114 | |
| 98 | 115 | /** |
| 99 | 116 | * @param string $provinceName |
| 117 | + * @return void |
|
| 100 | 118 | */ |
| 101 | 119 | public function specifyShippingAddressProvince($provinceName); |
| 102 | 120 | |
@@ -112,11 +130,13 @@ discard block |
||
| 112 | 130 | |
| 113 | 131 | /** |
| 114 | 132 | * @param AddressInterface $address |
| 133 | + * @return void |
|
| 115 | 134 | */ |
| 116 | 135 | public function selectShippingAddressFromAddressBook(AddressInterface $address); |
| 117 | 136 | |
| 118 | 137 | /** |
| 119 | 138 | * @param AddressInterface $address |
| 139 | + * @return void |
|
| 120 | 140 | */ |
| 121 | 141 | public function selectBillingAddressFromAddressBook(AddressInterface $address); |
| 122 | 142 | |
@@ -20,8 +20,12 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $shippingMethod |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function selectShippingMethod($shippingMethod); |
| 25 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 26 | 30 | public function continueCheckout(); |
| 27 | 31 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * @Transform /^address is "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)"$/ |
| 70 | 70 | * @Transform /^address to "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)"$/ |
| 71 | 71 | */ |
| 72 | - public function createNewAddressWith($cityName, $street, $postcode, $countryName, $customerName, $provinceName = null) |
|
| 72 | + public function createNewAddressWith($cityName, $street, $postcode, $countryName, $customerName, $provinceName = null) |
|
| 73 | 73 | { |
| 74 | 74 | $countryCode = $this->countryNameConverter->convertToCode($countryName); |
| 75 | 75 | $customerName = explode(' ', $customerName); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | public function getByStreet($street) |
| 108 | 108 | { |
| 109 | 109 | $address = $this->addressRepository->findOneBy(['street' => $street]); |
| 110 | - Assert::notNull($address, sprintf('Cannot find address by %s street' , $street)); |
|
| 110 | + Assert::notNull($address, sprintf('Cannot find address by %s street', $street)); |
|
| 111 | 111 | |
| 112 | 112 | return $address; |
| 113 | 113 | } |
@@ -271,6 +271,6 @@ |
||
| 271 | 271 | */ |
| 272 | 272 | private function generateCodeFromNameAndZone($shippingMethodName, $zoneCode = null) |
| 273 | 273 | { |
| 274 | - return StringInflector::nameToLowercaseCode($shippingMethodName).'_'.StringInflector::nameToLowercaseCode($zoneCode); |
|
| 274 | + return StringInflector::nameToLowercaseCode($shippingMethodName) . '_' . StringInflector::nameToLowercaseCode($zoneCode); |
|
| 275 | 275 | } |
| 276 | 276 | } |