@@ -260,9 +260,9 @@ |
||
| 260 | 260 | return $this->translatePlaceholders($this->shippingMethodContinueButtonXpath); |
| 261 | 261 | } |
| 262 | 262 | |
| 263 | - /** |
|
| 264 | - * @return string |
|
| 265 | - */ |
|
| 263 | + /** |
|
| 264 | + * @return string |
|
| 265 | + */ |
|
| 266 | 266 | public function getPlaceOrderButtonXpath() |
| 267 | 267 | { |
| 268 | 268 | return $this->translatePlaceholders($this->placeOrderButtonXpath); |
@@ -57,7 +57,9 @@ |
||
| 57 | 57 | $attributes = $this->option->getOptionNames(); |
| 58 | 58 | foreach ($attributes as $attributeName) { |
| 59 | 59 | $elementOption = $this->option->getOption($attributeName); |
| 60 | - if (!$elementOption) continue; |
|
| 60 | + if (!$elementOption) { |
|
| 61 | + continue; |
|
| 62 | + } |
|
| 61 | 63 | // The options are sorted by their entry into the setOption() method. Need to have it ordered by the page order |
| 62 | 64 | |
| 63 | 65 | if (!$elementOption instanceof Option) { |
@@ -44,10 +44,14 @@ |
||
| 44 | 44 | foreach ($this->steps as $step) { |
| 45 | 45 | if ($step instanceof StepInterface) { |
| 46 | 46 | $continue = $step->execute(); |
| 47 | - if (!$continue) return; |
|
| 47 | + if (!$continue) { |
|
| 48 | + return; |
|
| 49 | + } |
|
| 48 | 50 | |
| 49 | 51 | $continue = $step->nextAction(); |
| 50 | - if (!$continue) return; |
|
| 52 | + if (!$continue) { |
|
| 53 | + return; |
|
| 54 | + } |
|
| 51 | 55 | } |
| 52 | 56 | } |
| 53 | 57 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | self::TYPE_VISA => '4007000000027', |
| 20 | 20 | self::TYPE_AMERICAN_EXPRESS => '370000000000002', |
| 21 | 21 | self::TYPE_DISCOVER => '6011000000000012', |
| 22 | - self::TYPE_MASTERCARD => '5424000000000015', |
|
| 22 | + self::TYPE_MASTERCARD => '5424000000000015', |
|
| 23 | 23 | self::TYPE_UNKNOWN => '0000000000000000' |
| 24 | 24 | ]; |
| 25 | 25 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | CustomerLogin $loginNavigator |
| 17 | 17 | |
| 18 | 18 | ) { |
| 19 | - $this->login = $login; |
|
| 19 | + $this->login = $login; |
|
| 20 | 20 | $this->loginNavigator = $loginNavigator; |
| 21 | 21 | } |
| 22 | 22 | |
@@ -15,7 +15,9 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $xpath = new \DOMXPath($this->document); |
| 17 | 17 | $xpathQuery = $this->theme->getLayeredNavigationSwatchAppliesXpath($this->title); |
| 18 | - if (!$xpathQuery) return false; |
|
| 18 | + if (!$xpathQuery) { |
|
| 19 | + return false; |
|
| 20 | + } |
|
| 19 | 21 | $elements = $xpath->query($xpathQuery); |
| 20 | 22 | return $elements->length > 0; |
| 21 | 23 | } |