Skip to content

Commit

Permalink
php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenyeargin committed Mar 23, 2024
1 parent 3de5c59 commit d435552
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Controller/ResetPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Notification/IncomingPhoneNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Notification/IncomingSmsNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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
Expand Down

0 comments on commit d435552

Please sign in to comment.