Skip to content

Commit fea6473

Browse files
committed
formatting
1 parent 3b7b59b commit fea6473

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

stubs/UpdateUserProfileInformation.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,20 @@ public function update($user, array $input)
3030
],
3131
])->validateWithBag('updateProfileInformation');
3232

33-
if ($input['email'] !== $user->email && $user instanceof MustVerifyEmail) {
33+
if ($input['email'] !== $user->email &&
34+
$user instanceof MustVerifyEmail) {
3435
$user->forceFill([
3536
'name' => $input['name'],
3637
'email' => $input['email'],
3738
'email_verified_at' => null,
3839
])->save();
3940

4041
$user->sendEmailVerificationNotification();
41-
42-
return;
42+
} else {
43+
$user->forceFill([
44+
'name' => $input['name'],
45+
'email' => $input['email'],
46+
])->save();
4347
}
44-
45-
$user->forceFill([
46-
'name' => $input['name'],
47-
'email' => $input['email'],
48-
])->save();
4948
}
5049
}

0 commit comments

Comments
 (0)