From 8c532efd5f02f7a7e5ea322a07ddcf49d130a8ec Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 17 Oct 2015 10:09:03 -0400 Subject: Run php-cs-fixer on the code base --- app/Core/Mail/Client.php | 2 +- app/Core/Mail/Transport/Mail.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'app/Core/Mail') diff --git a/app/Core/Mail/Client.php b/app/Core/Mail/Client.php index c7cfaab9..52caef73 100644 --- a/app/Core/Mail/Client.php +++ b/app/Core/Mail/Client.php @@ -87,7 +87,7 @@ class Client extends Base { $container = $this->container; - $this->transports[$transport] = function() use ($class, $container) { + $this->transports[$transport] = function () use ($class, $container) { return new $class($container); }; diff --git a/app/Core/Mail/Transport/Mail.php b/app/Core/Mail/Transport/Mail.php index ca06e208..4d833f8f 100644 --- a/app/Core/Mail/Transport/Mail.php +++ b/app/Core/Mail/Transport/Mail.php @@ -30,7 +30,6 @@ class Mail extends Base implements ClientInterface public function sendEmail($email, $name, $subject, $html, $author) { try { - $message = Swift_Message::newInstance() ->setSubject($subject) ->setFrom(array(MAIL_FROM => $author)) @@ -38,8 +37,7 @@ class Mail extends Base implements ClientInterface ->setTo(array($email => $name)); Swift_Mailer::newInstance($this->getTransport())->send($message); - } - catch (Swift_TransportException $e) { + } catch (Swift_TransportException $e) { $this->logger->error($e->getMessage()); } } -- cgit v1.2.3