@@ -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 | /** |
@@ -25,15 +25,20 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function hasValidationErrorWith($message); |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 28 | 31 | public function logIn(); |
| 29 | 32 | |
| 30 | 33 | /** |
| 31 | 34 | * @param string $password |
| 35 | + * @return void |
|
| 32 | 36 | */ |
| 33 | 37 | public function specifyPassword($password); |
| 34 | 38 | |
| 35 | 39 | /** |
| 36 | 40 | * @param string $userName |
| 41 | + * @return void |
|
| 37 | 42 | */ |
| 38 | 43 | public function specifyUserName($userName); |
| 39 | 44 | } |
@@ -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 | } |
@@ -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 | /** |