Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
zendframework/zendframework#6301 - adding some spacing while checking…
Browse files Browse the repository at this point in the history
… logic
  • Loading branch information
Ocramius committed Jul 28, 2014
1 parent 650e12d commit d799fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,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 @@ -717,7 +718,6 @@ public function setAuth($user, $password, $type = self::AUTH_BASIC)
'user' => $user,
'password' => $password,
'type' => $type

);

return $this;
Expand Down

0 comments on commit d799fd9

Please sign in to comment.