Test Failed
Push — master ( 485f5c...a89989 )
by Robert
03:10
created
src/PantherDriver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             'setRemoveHostFromUrl() is deprecated as of 1.2 and will be removed in 2.0. Pass the base url in the constructor instead.',
104 104
             E_USER_DEPRECATED
105 105
         );
106
-        $this->removeHostFromUrl = (bool)$remove;
106
+        $this->removeHostFromUrl = (bool) $remove;
107 107
     }
108 108
 
109 109
     /**
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             'setRemoveScriptFromUrl() is deprecated as of 1.2 and will be removed in 2.0. Pass the base url in the constructor instead.',
120 120
             E_USER_DEPRECATED
121 121
         );
122
-        $this->removeScriptFromUrl = (bool)$remove;
122
+        $this->removeScriptFromUrl = (bool) $remove;
123 123
     }
124 124
 
125 125
     /**
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 
263 263
         $jar = $this->client->getCookieJar();
264 264
         // @see: https://github.com/w3c/webdriver/issues/1238
265
-        $jar->set(new Cookie($name, \rawurlencode((string)$value)));
265
+        $jar->set(new Cookie($name, \rawurlencode((string) $value)));
266 266
     }
267 267
 
268 268
     /**
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
     {
646 646
         if (\preg_match('/^function[\s\(]/', $script)) {
647 647
             $script = \preg_replace('/;$/', '', $script);
648
-            $script = '(' . $script . ')';
648
+            $script = '('.$script.')';
649 649
         }
650 650
 
651 651
         return $this->client->executeScript($script);
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
     public function evaluateScript($script)
658 658
     {
659 659
         if (0 !== \strpos(\trim($script), 'return ')) {
660
-            $script = 'return ' . $script;
660
+            $script = 'return '.$script;
661 661
         }
662 662
 
663 663
         return $this->client->executeScript($script);
Please login to merge, or discard this patch.