Passed
Pull Request — master (#14)
by pablo
01:53
created
src/Step/AccountVerification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         //Wait after redirection
33 33
         $simulatorElementSearch = WebDriverBy::name('email');
34
-        $condition  = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch);
34
+        $condition = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch);
35 35
         $this->webDriver->wait()->until($condition);
36 36
 
37 37
         //Fill email
Please login to merge, or discard this patch.
src/Step/Password.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         //Wait after redirection
38 38
         $simulatorElementSearch = WebDriverBy::name('password');
39
-        $condition  = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch);
39
+        $condition = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch);
40 40
         $this->webDriver->wait()->until($condition);
41 41
 
42 42
         //Fill email
Please login to merge, or discard this patch.
src/Step/AbstractStep.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      */
86 86
     public function moveToParent()
87 87
     {
88
-        $handles=$this->webDriver->getWindowHandles();
88
+        $handles = $this->webDriver->getWindowHandles();
89 89
         $parent = end($handles);
90 90
         $this->webDriver->switchTo()->window($parent);
91 91
     }
Please login to merge, or discard this patch.
src/SeleniumHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             do {
48 48
                 self::waitToLoad();
49 49
                 $formStep = self::getFormStep();
50
-                if(self::stepIsExcluded($formStep)){
50
+                if (self::stepIsExcluded($formStep)) {
51 51
                     $continue = true;
52 52
                     continue;
53 53
                 }
@@ -56,14 +56,14 @@  discard block
 block discarded – undo
56 56
                 $stepClass = new $formStepClass(self::$webDriver);
57 57
                 $continue = $stepClass->run($rejected);
58 58
                 --$maxSteps;
59
-            } while ($continue && $maxSteps>0);
59
+            } while ($continue && $maxSteps > 0);
60 60
         } catch (\Exception $exception) {
61 61
             echo $exception->getMessage();
62 62
             echo self::$webDriver->getCurrentURL();
63 63
         }
64 64
 
65 65
         if ($maxSteps <= 0) {
66
-            throw new \Exception('Error while finishing form, step: ' . $formStep);
66
+            throw new \Exception('Error while finishing form, step: '.$formStep);
67 67
         }
68 68
 
69 69
         return $formStep;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public static function stepIsExcluded($currentStep)
78 78
     {
79
-        return (substr($currentStep,0,4) === '004.');
79
+        return (substr($currentStep, 0, 4) === '004.');
80 80
     }
81 81
 
82 82
     /**
Please login to merge, or discard this patch.
src/Step/OrderConfirmation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function run($rejected = false)
30 30
     {
31
-        try{
31
+        try {
32 32
             //Wait after redirection
33 33
             $simulatorElementSearch = WebDriverBy::id('OrderConfirmation-container');
34
-            $condition  = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch);
34
+            $condition = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch);
35 35
             $this->webDriver->wait()->until($condition);
36 36
         } catch (\Exception $e) {
37 37
             $errorElementSearch = WebDriverBy::className('technical-error-container');
38
-            $condition  = WebDriverExpectedCondition::presenceOfElementLocated($errorElementSearch);
38
+            $condition = WebDriverExpectedCondition::presenceOfElementLocated($errorElementSearch);
39 39
             $this->webDriver->wait()->until($condition);
40 40
             $this->assertTrue((bool) $condition, "ERROR ON ".self::STEP);
41 41
             return false;
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
         //Click on popup
45 45
         sleep(3);
46 46
         $buttonElementSearch = WebDriverBy::name('dialogButton');
47
-        $condition  = WebDriverExpectedCondition::presenceOfElementLocated($buttonElementSearch);
47
+        $condition = WebDriverExpectedCondition::presenceOfElementLocated($buttonElementSearch);
48 48
         $this->webDriver->wait()->until($condition);
49 49
         $formContinue = $this->webDriver->findElement($buttonElementSearch)->click();
50 50
         sleep(3);
51 51
 
52 52
         //Click on confirm
53 53
         $buttonElementSearch = WebDriverBy::className('button-contained-primary');
54
-        $condition  = WebDriverExpectedCondition::presenceOfElementLocated($buttonElementSearch);
54
+        $condition = WebDriverExpectedCondition::presenceOfElementLocated($buttonElementSearch);
55 55
         $this->webDriver->wait()->until($condition);
56 56
         $formContinue = $this->webDriver->findElement($buttonElementSearch)->click();
57 57
         sleep(3);
Please login to merge, or discard this patch.