From 6caf7e568492d0bad42e397ded7344370c2e16b1 Mon Sep 17 00:00:00 2001 From: Ross Addison Date: Thu, 22 Aug 2024 21:34:49 +0100 Subject: [PATCH] Flash Message Flash Message --- blog/src/Auth/Controller/ChangePasswordController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/src/Auth/Controller/ChangePasswordController.php b/blog/src/Auth/Controller/ChangePasswordController.php index 1556dcd4..bdd3a385 100644 --- a/blog/src/Auth/Controller/ChangePasswordController.php +++ b/blog/src/Auth/Controller/ChangePasswordController.php @@ -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(); @@ -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; }