@@ -378,8 +378,7 @@ discard block |
||
378 | 378 | CURLOPT_HTTPAUTH => CURLAUTH_BASIC, |
379 | 379 | CURLOPT_USERPWD => $this->getHttpAuth()['username'] |
380 | 380 | ]); |
381 | - } |
|
382 | - else { |
|
381 | + } else { |
|
383 | 382 | $curl->setOption([ |
384 | 383 | CURLOPT_HTTPAUTH => CURLAUTH_BASIC, |
385 | 384 | CURLOPT_USERPWD => sprintf('%s:%s', $this->getHttpAuth()['username'], $this->getHttpAuth()['password']) |
@@ -502,8 +501,7 @@ discard block |
||
502 | 501 | throw new Exception('Too few arguments, missing argument: ' . $key); |
503 | 502 | } |
504 | 503 | $replaces[] = $params[$key]; |
505 | - } |
|
506 | - else { |
|
504 | + } else { |
|
507 | 505 | if (!array_key_exists($value, $params[0])) { |
508 | 506 | throw new Exception('Missing array argument: ' . $key); |
509 | 507 | } |