@@ -47,7 +47,7 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $input = new Input($name); |
| 49 | 49 | $input->setRequired($required) |
| 50 | - ->getFilterChain()->attach(new StripTags()) |
|
| 50 | + ->getFilterChain()->attach(new StripTags()) |
|
| 51 | 51 | ->attach(new StringTrim()); |
| 52 | 52 | return $input; |
| 53 | 53 | } |
@@ -43,10 +43,10 @@ |
||
| 43 | 43 | private function createMessage(array $messageData) |
| 44 | 44 | { |
| 45 | 45 | return \Swift_Message::newInstance($this->options->getSubject()) |
| 46 | - ->setTo($this->options->getTo()) |
|
| 47 | - ->setFrom($this->options->getFrom()) |
|
| 48 | - ->setReplyTo($messageData['email']) |
|
| 49 | - ->setBody($this->composeBody($messageData), 'text/html'); |
|
| 46 | + ->setTo($this->options->getTo()) |
|
| 47 | + ->setFrom($this->options->getFrom()) |
|
| 48 | + ->setReplyTo($messageData['email']) |
|
| 49 | + ->setBody($this->composeBody($messageData), 'text/html'); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | private function composeBody(array $messageData) |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | $mailConfig = $container->get('config')['mail']; |
| 11 | 11 | $smtp = $mailConfig['smtp']; |
| 12 | 12 | $transport = \Swift_SmtpTransport::newInstance($smtp['server'], $smtp['port'], $smtp['ssl']) |
| 13 | - ->setUsername($smtp['username']) |
|
| 14 | - ->setPassword($smtp['password']); |
|
| 13 | + ->setUsername($smtp['username']) |
|
| 14 | + ->setPassword($smtp['password']); |
|
| 15 | 15 | return new \Swift_Mailer($transport); |
| 16 | 16 | } |
| 17 | 17 | } |