Passed
Branch 1.1 (616134)
by David
03:55
created
AbstractApi.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 
150 150
 	/**
151 151
 	 * Set accept
152
-	 * @param array|string $accept
152
+	 * @param string $accept
153 153
 	 * @return AbstractApi
154 154
 	 */
155 155
 	public function setAccept($accept): AbstractApi {
Please login to merge, or discard this 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.