@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $this->moveToParent(); |
| 60 | 60 | $this->moveToIFrame('hosted-field-expirationDate'); |
| 61 | 61 | $expiration = $this->webDriver->findElement(WebDriverBy::name('expiration')); |
| 62 | - $expiration->clear()->sendKeys('12'. date('y')); |
|
| 62 | + $expiration->clear()->sendKeys('12'.date('y')); |
|
| 63 | 63 | $this->moveToParent(); |
| 64 | 64 | $acceptedTerms = $this->webDriver->findElement(WebDriverBy::className('Form-checkboxSkin')); |
| 65 | 65 | $acceptedTerms->click(); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | if ($step !== $tempStep) { |
| 82 | - throw new \Exception('Wrong step: ' . $tempStep); |
|
| 82 | + throw new \Exception('Wrong step: '.$tempStep); |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function moveToParent() |
| 102 | 102 | { |
| 103 | - $handles=$this->webDriver->getWindowHandles(); |
|
| 103 | + $handles = $this->webDriver->getWindowHandles(); |
|
| 104 | 104 | $parent = end($handles); |
| 105 | 105 | $this->webDriver->switchTo()->window($parent); |
| 106 | 106 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $this->validateStep(self::STEP); |
| 27 | 27 | //Click on confirm: |
| 28 | 28 | $expiration = $this->webDriver->findElement(WebDriverBy::id('expireDate')); |
| 29 | - $expiration->clear()->sendKeys('12'. date('y')); |
|
| 29 | + $expiration->clear()->sendKeys('12'.date('y')); |
|
| 30 | 30 | $this->moveToParent(); |
| 31 | 31 | $formContinue = $this->webDriver->findElement(WebDriverBy::name('one_click_expiration_date_confirm')); |
| 32 | 32 | $formContinue->click(); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | } while ($formStep !== Approved::STEP && $maxSteps > 0); |
| 55 | 55 | |
| 56 | 56 | if ($maxSteps <= 0) { |
| 57 | - throw new \Exception('Error while finishing form, step: ' . $formStep); |
|
| 57 | + throw new \Exception('Error while finishing form, step: '.$formStep); |
|
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |