]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
CS
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 10 Jan 2016 12:01:00 +0000 (13:01 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 21 Jan 2016 10:03:27 +0000 (11:03 +0100)
src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php
src/Wallabag/UserBundle/Tests/Mailer/AuthCodeMailerTest.php

index c04720aeaa52700dcb352a0277f6df769aa34f54..fa682ae75025d6ee18fafbf379fab5cf79e01db1 100644 (file)
@@ -4,7 +4,6 @@ namespace Wallabag\UserBundle\Mailer;
 
 use Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface;
 use Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface;
-use Symfony\Component\Translation\TranslatorInterface;
 
 /**
  * Custom mailer for TwoFactorBundle email.
@@ -50,11 +49,11 @@ class AuthCodeMailer implements AuthCodeMailerInterface
     /**
      * Initialize the auth code mailer with the SwiftMailer object.
      *
-     * @param \Swift_Mailer           $mailer
-     * @param \Twig_Environment       $twig
-     * @param string                  $senderEmail
-     * @param string                  $senderName
-     * @param string                  $supportUrl
+     * @param \Swift_Mailer     $mailer
+     * @param \Twig_Environment $twig
+     * @param string            $senderEmail
+     * @param string            $senderName
+     * @param string            $supportUrl
      */
     public function __construct(\Swift_Mailer $mailer, \Twig_Environment $twig, $senderEmail, $senderName, $supportUrl)
     {
@@ -74,7 +73,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface
     {
         $template = $this->twig->loadTemplate('@WallabagUserBundle/Resources/views/TwoFactor/email_auth_code.html.twig');
 
-        $subject  = $template->renderBlock('subject', array());
+        $subject = $template->renderBlock('subject', array());
         $bodyHtml = $template->renderBlock('body_html', [
             'user' => $user->getName(),
             'code' => $user->getEmailAuthCode(),
index 857cdcbeca38d36b0a0e41af48d6dae613bd3d4d..fbd7fdd75bd9f01bcc462c1de25bdfb84abeb657 100644 (file)
@@ -4,8 +4,6 @@ namespace Wallabag\UserBundle\Tests\Mailer;
 
 use Wallabag\UserBundle\Entity\User;
 use Wallabag\UserBundle\Mailer\AuthCodeMailer;
-use Symfony\Component\Translation\Translator;
-use Symfony\Component\Translation\Loader\ArrayLoader;
 
 /**
  * @see https://www.pmg.com/blog/integration-testing-swift-mailer/