Apparently this is changed in PHPStorm’s formatting templates so there you go [skip ci].

This commit is contained in:
James Cole
2017-04-09 07:44:22 +02:00
parent 240797e92a
commit 595596d73f
351 changed files with 406 additions and 387 deletions

View File

@@ -140,18 +140,18 @@ class ProfileController extends Controller
return redirect(route('index'));
}
/**
* @param User $user
* @param string $current
* @param string $new
* @param string $newConfirmation
*
* @return bool
* @throws ValidationException
*/
protected function validatePassword(User $user, string $current, string $new): bool
{
if (!Hash::check($current, auth()->user()->password)) {
if (!Hash::check($current, $user->password)) {
throw new ValidationException(strval(trans('firefly.invalid_current_password')));
}