@@ -103,7 +103,7 @@ discard block |
||
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 |
||
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 |
||
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 | /** |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | } |
554 | 554 | |
555 | 555 | if ($multiple) { |
556 | - $oldValue = (array)$field->getValue(); |
|
556 | + $oldValue = (array) $field->getValue(); |
|
557 | 557 | $oldValue[] = $value; |
558 | 558 | $value = $oldValue; |
559 | 559 | } |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | { |
638 | 638 | if (\preg_match('/^function[\s\(]/', $script)) { |
639 | 639 | $script = \preg_replace('/;$/', '', $script); |
640 | - $script = '(' . $script . ')'; |
|
640 | + $script = '('.$script.')'; |
|
641 | 641 | } |
642 | 642 | |
643 | 643 | return $this->client->executeScript($script); |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | public function evaluateScript($script) |
650 | 650 | { |
651 | 651 | if (0 !== \strpos(\trim($script), 'return ')) { |
652 | - $script = 'return ' . $script; |
|
652 | + $script = 'return '.$script; |
|
653 | 653 | } |
654 | 654 | |
655 | 655 | return $this->client->executeScript($script); |