Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 20, 2020
1 parent 3b7b59b commit fea6473
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions stubs/UpdateUserProfileInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,20 @@ public function update($user, array $input)
],
])->validateWithBag('updateProfileInformation');

if ($input['email'] !== $user->email && $user instanceof MustVerifyEmail) {
if ($input['email'] !== $user->email &&
$user instanceof MustVerifyEmail) {
$user->forceFill([
'name' => $input['name'],
'email' => $input['email'],
'email_verified_at' => null,
])->save();

$user->sendEmailVerificationNotification();

return;
} else {
$user->forceFill([
'name' => $input['name'],
'email' => $input['email'],
])->save();
}

$user->forceFill([
'name' => $input['name'],
'email' => $input['email'],
])->save();
}
}

0 comments on commit fea6473

Please sign in to comment.