summaryrefslogtreecommitdiff
path: root/app/Core/Mail
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Mail')
-rw-r--r--app/Core/Mail/Client.php2
-rw-r--r--app/Core/Mail/Transport/Mail.php4
2 files changed, 2 insertions, 4 deletions
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());
}
}