Skip to content

Commit

Permalink
zendframework#6301 - adding some spacing while checking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius authored and dima committed Nov 27, 2014
1 parent 3e2ef16 commit ea3484e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ public function setAuth($user, $password, $type = self::AUTH_BASIC)
if (!defined('static::AUTH_' . strtoupper($type))) {
throw new Exception\InvalidArgumentException("Invalid or not supported authentication type: '$type'");
}

if (empty($user)) {
throw new Exception\InvalidArgumentException("The username cannot be empty");
}
Expand All @@ -727,7 +728,6 @@ public function setAuth($user, $password, $type = self::AUTH_BASIC)
'user' => $user,
'password' => $password,
'type' => $type

);

return $this;
Expand Down

0 comments on commit ea3484e

Please sign in to comment.