Passed
Branch 1.1 (616134)
by David
03:55
created
AbstractApi.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -378,8 +378,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 					}
Please login to merge, or discard this patch.