Skip to content

Commit

Permalink
Flash Message
Browse files Browse the repository at this point in the history
Flash Message
  • Loading branch information
rossaddison committed Aug 22, 2024
1 parent 59d2293 commit 6caf7e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blog/src/Auth/Controller/ChangePasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public function change(
}

$identityId = $this->currentUser->getIdentity()->getId();
if (null!==$identity_id) {
$identity = $identityRepository->findIdentity($identity_id);
if (null!==$identityId) {
$identity = $identityRepository->findIdentity($identityId);
if (null!==$identity) {
// Identity and User are in a HasOne relationship so no null value
$login = $identity->getUser()?->getLogin();
Expand Down Expand Up @@ -82,7 +82,7 @@ public function change(
* @param string $message
* @return Flash
*/
private function flash_message(string $level, string $message): Flash {
private function flashMessage(string $level, string $message): Flash {
$this->flash->add($level, $message, true);
return $this->flash;
}
Expand Down

0 comments on commit 6caf7e5

Please sign in to comment.