Skip to content

Commit

Permalink
Minor change for cleanliness (#15709)
Browse files Browse the repository at this point in the history
  • Loading branch information
dciancu authored and taylorotwell committed Oct 3, 2016
1 parent 52e56cd commit 08ab93f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Illuminate/Auth/Passwords/PasswordBroker.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ public function validator(Closure $callback)
*/
public function validateNewPassword(array $credentials)
{
list($password, $confirm) = [
$credentials['password'],
$credentials['password_confirmation'],
];

if (isset($this->passwordValidator)) {
list($password, $confirm) = [
$credentials['password'],
$credentials['password_confirmation'],
];

return call_user_func(
$this->passwordValidator, $credentials) && $password === $confirm;
}
Expand Down

0 comments on commit 08ab93f

Please sign in to comment.