@@ -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 | } |
@@ -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 | } |