Skip to content

Commit

Permalink
Apply php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
danielburger1337 committed Apr 4, 2024
1 parent 6a1576b commit fb529be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AuthCodeProvider/AuthCodeProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __construct(
private readonly AuthCodeGeneratorInterface $authCodeGenerator,
private readonly AuthCodeMailerInterface $mailer,
private readonly ClockInterface $clock,
private readonly string|null $expiresAfter = null,
private readonly ?string $expiresAfter = null,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Mailer/SymfonyAuthCodeEmailGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class SymfonyAuthCodeEmailGenerator implements AuthCodeEmailGeneratorInter
public function __construct(
private readonly string $subject,
private readonly string $textBody,
string|null $senderEmail,
?string $senderEmail,
?string $senderName = null,
) {
if (null !== $senderEmail && null !== $senderName) {
Expand Down
4 changes: 2 additions & 2 deletions src/Model/TwoFactorEmailInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function getEmailAuthRecipient(): string;
/**
* The authentication code.
*/
public function getEmailAuthCode(): string|null;
public function getEmailAuthCode(): ?string;

/**
* Set the authentication code.
Expand All @@ -27,7 +27,7 @@ public function setEmailAuthCode(string $authCode): void;
/**
* Timestamp of when the authentication code will expire.
*/
public function getEmailAuthCodeExpiresAt(): \DateTimeImmutable|null;
public function getEmailAuthCodeExpiresAt(): ?\DateTimeImmutable;

/**
* Set the timestamp of when the authentication code will expire.
Expand Down

0 comments on commit fb529be

Please sign in to comment.