Passed
Push — master ( 698224...644d9a )
by Robert
03:24
created
src/PantherDriver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             'setRemoveHostFromUrl() is deprecated as of 1.2 and will be removed in 2.0. Pass the base url in the constructor instead.',
86 86
             E_USER_DEPRECATED
87 87
         );
88
-        $this->removeHostFromUrl = (bool)$remove;
88
+        $this->removeHostFromUrl = (bool) $remove;
89 89
     }
90 90
 
91 91
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             'setRemoveScriptFromUrl() is deprecated as of 1.2 and will be removed in 2.0. Pass the base url in the constructor instead.',
102 102
             E_USER_DEPRECATED
103 103
         );
104
-        $this->removeScriptFromUrl = (bool)$remove;
104
+        $this->removeScriptFromUrl = (bool) $remove;
105 105
     }
106 106
 
107 107
     /**
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 
253 253
         $jar = $this->getClient()->getCookieJar();
254 254
         // @see: https://github.com/w3c/webdriver/issues/1238
255
-        $jar->set(new Cookie($name, \rawurlencode((string)$value)));
255
+        $jar->set(new Cookie($name, \rawurlencode((string) $value)));
256 256
     }
257 257
 
258 258
     /**
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
     {
670 670
         if (\preg_match('/^function[\s\(]/', $script)) {
671 671
             $script = \preg_replace('/;$/', '', $script);
672
-            $script = '(' . $script . ')';
672
+            $script = '('.$script.')';
673 673
         }
674 674
 
675 675
         return $this->getClient()->executeScript($script);
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
     public function evaluateScript($script)
682 682
     {
683 683
         if (0 !== \strpos(\trim($script), 'return ')) {
684
-            $script = 'return ' . $script;
684
+            $script = 'return '.$script;
685 685
         }
686 686
 
687 687
         return $this->getClient()->executeScript($script);
Please login to merge, or discard this patch.