1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-05 19:31:02 +00:00

Clean PHPStan baseline

This commit is contained in:
Yassine Guedidi 2025-04-05 16:19:38 +02:00
parent 0d93add058
commit e63d473032
17 changed files with 73 additions and 85 deletions

View file

@ -8,6 +8,7 @@ use Symfony\Component\Mailer\MailerInterface;
use Symfony\Component\Mime\Address;
use Symfony\Component\Mime\Email;
use Twig\Environment;
use Wallabag\Entity\User;
/**
* Custom mailer for TwoFactorBundle email.
@ -69,6 +70,8 @@ class AuthCodeMailer implements AuthCodeMailerInterface
*/
public function sendAuthCode(TwoFactorInterface $user): void
{
\assert($user instanceof User);
$template = $this->twig->load('TwoFactor/email_auth_code.html.twig');
$subject = $template->renderBlock('subject', []);