@@ -285,7 +285,7 @@ |
||
| 285 | 285 | public function setSmtpSecurity($security) |
| 286 | 286 | { |
| 287 | 287 | $security = strtoupper($security); |
| 288 | - $validSecurity = [ '', 'TLS', 'SSL' ]; |
|
| 288 | + $validSecurity = ['', 'TLS', 'SSL']; |
|
| 289 | 289 | |
| 290 | 290 | if (!in_array($security, $validSecurity)) { |
| 291 | 291 | throw new InvalidArgumentException( |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | public function setTo($email) |
| 238 | 238 | { |
| 239 | 239 | if (is_string($email)) { |
| 240 | - $email = [ $email ]; |
|
| 240 | + $email = [$email]; |
|
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | if (!is_array($email)) { |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | public function setCc($email) |
| 304 | 304 | { |
| 305 | 305 | if (is_string($email)) { |
| 306 | - $email = [ $email ]; |
|
| 306 | + $email = [$email]; |
|
| 307 | 307 | } |
| 308 | 308 | |
| 309 | 309 | if (!is_array($email)) { |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | { |
| 371 | 371 | if (is_string($email)) { |
| 372 | 372 | // Means we have a straight email |
| 373 | - $email = [ $email ]; |
|
| 373 | + $email = [$email]; |
|
| 374 | 374 | } |
| 375 | 375 | |
| 376 | 376 | if (!is_array($email)) { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | /** |
| 28 | 28 | * @return PHPMailer |
| 29 | 29 | */ |
| 30 | - $container['phpmailer'] = $container->factory(function (Container $container) { |
|
| 30 | + $container['phpmailer'] = $container->factory(function(Container $container) { |
|
| 31 | 31 | $throwException = true; |
| 32 | 32 | $mailer = new PHPMailer($throwException); |
| 33 | 33 | return $mailer; |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * @return EmailConfig |
| 38 | 38 | */ |
| 39 | - $container['email/config'] = function (Container $container) { |
|
| 39 | + $container['email/config'] = function(Container $container) { |
|
| 40 | 40 | $config = $container['config']; |
| 41 | 41 | $emailConfig = new EmailConfig($config['email']); |
| 42 | 42 | return $emailConfig; |
@@ -45,14 +45,14 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * @return \Charcoal\View\ViewInterface |
| 47 | 47 | */ |
| 48 | - $container['email/view'] = function (Container $container) { |
|
| 48 | + $container['email/view'] = function(Container $container) { |
|
| 49 | 49 | return $container['view']; |
| 50 | 50 | }; |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * @return Email |
| 54 | 54 | */ |
| 55 | - $container['email'] = $container->factory(function (Container $container) { |
|
| 55 | + $container['email'] = $container->factory(function(Container $container) { |
|
| 56 | 56 | $email = new Email(); |
| 57 | 57 | return $email; |
| 58 | 58 | }); |