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