From d435552d154b5d6da6db6b4976320dfbc86e6d25 Mon Sep 17 00:00:00 2001 From: Stephen Yeargin Date: Sat, 23 Mar 2024 13:17:14 -0500 Subject: [PATCH] php-cs-fixer --- src/Controller/ResetPasswordController.php | 2 +- src/Notification/IncomingPhoneNotification.php | 4 ++-- src/Notification/IncomingSmsNotification.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Controller/ResetPasswordController.php b/src/Controller/ResetPasswordController.php index f168a47..12944df 100644 --- a/src/Controller/ResetPasswordController.php +++ b/src/Controller/ResetPasswordController.php @@ -70,7 +70,7 @@ public function checkEmail(): Response * Validates and process the reset URL that the user clicked in their email. */ #[Route(path: '/reset/{token}', name: 'app_reset_password')] - public function reset(Request $request, UserPasswordHasherInterface $passwordEncoder, EntityManagerInterface $entityManager, string $token = null): Response + public function reset(Request $request, UserPasswordHasherInterface $passwordEncoder, EntityManagerInterface $entityManager, ?string $token = null): Response { if ($token) { $this->storeTokenInSession($token); diff --git a/src/Notification/IncomingPhoneNotification.php b/src/Notification/IncomingPhoneNotification.php index 7eafa72..0963573 100644 --- a/src/Notification/IncomingPhoneNotification.php +++ b/src/Notification/IncomingPhoneNotification.php @@ -12,7 +12,7 @@ class IncomingPhoneNotification extends Notification implements EmailNotificatio { protected $options = []; - public function __construct(Member $member = null, $options = []) + public function __construct(?Member $member = null, $options = []) { if ($member) { parent::__construct(sprintf('Phone Call from %s', $member), ['email']); @@ -22,7 +22,7 @@ public function __construct(Member $member = null, $options = []) $this->options = $options; } - public function asEmailMessage(EmailRecipientInterface $recipient, string $transport = null): ?EmailMessage + public function asEmailMessage(EmailRecipientInterface $recipient, ?string $transport = null): ?EmailMessage { $message = EmailMessage::fromNotification($this, $recipient); $message->getMessage()->getHeaders()->addTextHeader('X-Cmail-GroupName', 'Incoming Phone Notification'); // @phpstan-ignore-line diff --git a/src/Notification/IncomingSmsNotification.php b/src/Notification/IncomingSmsNotification.php index 4027f3b..3bfb59f 100644 --- a/src/Notification/IncomingSmsNotification.php +++ b/src/Notification/IncomingSmsNotification.php @@ -12,7 +12,7 @@ class IncomingSmsNotification extends Notification implements EmailNotificationI { protected $options = []; - public function __construct(Member $member = null, $options = []) + public function __construct(?Member $member = null, $options = []) { if ($member) { parent::__construct(sprintf('Text Message from %s', $member), ['email']); @@ -22,7 +22,7 @@ public function __construct(Member $member = null, $options = []) $this->options = $options; } - public function asEmailMessage(EmailRecipientInterface $recipient, string $transport = null): ?EmailMessage + public function asEmailMessage(EmailRecipientInterface $recipient, ?string $transport = null): ?EmailMessage { $message = EmailMessage::fromNotification($this, $recipient); $message->getMessage()->getHeaders()->addTextHeader('X-Cmail-GroupName', 'Incoming SMS Notification'); // @phpstan-ignore-line