@@ -406,7 +406,7 @@ |
||
| 406 | 406 | $value = $element->getAttribute('value'); |
| 407 | 407 | } |
| 408 | 408 | |
| 409 | - return $value; |
|
| 409 | + return $value; |
|
| 410 | 410 | } |
| 411 | 411 | |
| 412 | 412 | /** |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | 'setRemoveHostFromUrl() is deprecated as of 1.2 and will be removed in 2.0. Pass the base url in the constructor instead.', |
| 106 | 106 | E_USER_DEPRECATED |
| 107 | 107 | ); |
| 108 | - $this->removeHostFromUrl = (bool)$remove; |
|
| 108 | + $this->removeHostFromUrl = (bool) $remove; |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /** |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | 'setRemoveScriptFromUrl() is deprecated as of 1.2 and will be removed in 2.0. Pass the base url in the constructor instead.', |
| 122 | 122 | E_USER_DEPRECATED |
| 123 | 123 | ); |
| 124 | - $this->removeScriptFromUrl = (bool)$remove; |
|
| 124 | + $this->removeScriptFromUrl = (bool) $remove; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | |
| 231 | 231 | $jar = $this->client->getCookieJar(); |
| 232 | 232 | // @see: https://github.com/w3c/webdriver/issues/1238 |
| 233 | - $jar->set(new Cookie($name, \rawurlencode((string)$value))); |
|
| 233 | + $jar->set(new Cookie($name, \rawurlencode((string) $value))); |
|
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | /** |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | } |
| 454 | 454 | |
| 455 | 455 | if ($multiple) { |
| 456 | - $oldValue = (array)$field->getValue(); |
|
| 456 | + $oldValue = (array) $field->getValue(); |
|
| 457 | 457 | $oldValue[] = $value; |
| 458 | 458 | $value = $oldValue; |
| 459 | 459 | } |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | public function evaluateScript($script) |
| 555 | 555 | { |
| 556 | 556 | if (0 !== \strpos(trim($script), 'return ')) { |
| 557 | - $script = 'return ' . $script; |
|
| 557 | + $script = 'return '.$script; |
|
| 558 | 558 | } |
| 559 | 559 | |
| 560 | 560 | return $this->client->executeScript($script); |