@@ -103,12 +103,12 @@ |
||
| 103 | 103 | * |
| 104 | 104 | * @return \Swift_Message |
| 105 | 105 | */ |
| 106 | - public function renderMail(array $data = []) :\Swift_Message |
|
| 106 | + public function renderMail(array $data = [ ]) :\Swift_Message |
|
| 107 | 107 | { |
| 108 | 108 | $mail = new \Swift_Message(); |
| 109 | 109 | |
| 110 | 110 | $twigEnvironment = clone $this->twigEnvironment; |
| 111 | - $function = new \Twig_SimpleFunction('embedImage', function ($imgPath) use ($mail) { |
|
| 111 | + $function = new \Twig_SimpleFunction('embedImage', function($imgPath) use ($mail) { |
|
| 112 | 112 | return $mail->embed(\Swift_Image::fromPath($imgPath)); |
| 113 | 113 | }); |
| 114 | 114 | $twigEnvironment->addFunction($function); |