@@ -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 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | try { |
40 | 40 | $name = $this->webDriver->findElement(WebDriverBy::name('name')); |
41 | - $name->clear()->sendKeys($this->faker->name . ' ' . $this->faker->lastName); |
|
41 | + $name->clear()->sendKeys($this->faker->name.' '.$this->faker->lastName); |
|
42 | 42 | } catch (\Exception $exception) { |
43 | 43 | unset($exception); |
44 | 44 | } |
@@ -59,7 +59,7 @@ discard block |
||
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(); |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | */ |
25 | 25 | protected function getDNI() |
26 | 26 | { |
27 | - $dni = '0000' . rand(pow(10, 4-1), pow(10, 4)-1); |
|
27 | + $dni = '0000'.rand(pow(10, 4 - 1), pow(10, 4) - 1); |
|
28 | 28 | $value = (int) ($dni / 23); |
29 | 29 | $value *= 23; |
30 | - $value= $dni - $value; |
|
31 | - $letter= "TRWAGMYFPDXBNJZSQVHLCKEO"; |
|
32 | - $dniLetter= substr($letter, $value, 1); |
|
30 | + $value = $dni - $value; |
|
31 | + $letter = "TRWAGMYFPDXBNJZSQVHLCKEO"; |
|
32 | + $dniLetter = substr($letter, $value, 1); |
|
33 | 33 | |
34 | 34 | return $dni.$dniLetter; |
35 | 35 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | try { |
54 | 54 | $name = $this->webDriver->findElement(WebDriverBy::name('name')); |
55 | 55 | $name->clear()->sendKeys( |
56 | - $this->faker->firstName . ' ' . $this->faker->lastName |
|
56 | + $this->faker->firstName.' '.$this->faker->lastName |
|
57 | 57 | ); |
58 | 58 | } catch (\Exception $exception) { |
59 | 59 | unset($exception); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | try { |
90 | 90 | $name = $this->webDriver->findElement(WebDriverBy::name('cellphone')); |
91 | - $name->clear()->sendKeys('6' . $this->faker->randomNumber(8)); |
|
91 | + $name->clear()->sendKeys('6'.$this->faker->randomNumber(8)); |
|
92 | 92 | } catch (\Exception $exception) { |
93 | 93 | unset($exception); |
94 | 94 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | try { |
100 | 100 | $name = $this->webDriver->findElement(WebDriverBy::name('address')); |
101 | - $name->clear()->sendKeys($this->faker->address. ' ' . $this->faker->city); |
|
101 | + $name->clear()->sendKeys($this->faker->address.' '.$this->faker->city); |
|
102 | 102 | } catch (\Exception $exception) { |
103 | 103 | unset($exception); |
104 | 104 | } |