Skip to content

Commit f9d53f5

Browse files
committed
Revert (incomplete) PSR12 changes
1 parent e891e66 commit f9d53f5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/WebDriver/Service/CurlService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ public function execute($requestMethod, $url, $parameters = null, $extraOptions
119119
$info['errno'] = curl_errno($curl);
120120
$info['error'] = curl_error($curl);
121121

122-
if (
123-
array_key_exists(CURLOPT_FAILONERROR, $extraOptions) &&
122+
if (array_key_exists(CURLOPT_FAILONERROR, $extraOptions) &&
124123
$extraOptions[CURLOPT_FAILONERROR] &&
125124
CURLE_GOT_NOTHING !== ($errno = curl_errno($curl)) &&
126125
$error = curl_error($curl)

lib/WebDriver/Storage/AbstractStorage.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ public function get()
7878
*/
7979
public function set()
8080
{
81-
if (
82-
func_num_args() === 1
83-
&& is_array($arg = func_get_arg(0))
84-
) {
81+
if (func_num_args() === 1 && is_array($arg = func_get_arg(0))) {
8582
$this->curl('POST', '', $arg);
8683

8784
return $this;

0 commit comments

Comments
 (0)