@@ -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)) { |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | { |
| 167 | 167 | $climate = $this->climate(); |
| 168 | 168 | |
| 169 | - $callback = function ($success, $failures, $skipped) use ($climate): void { |
|
| 169 | + $callback = function($success, $failures, $skipped) use ($climate): void { |
|
| 170 | 170 | if (!empty($success)) { |
| 171 | 171 | $climate->green()->out(sprintf('%s emails were successfully sent.', count($success))); |
| 172 | 172 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * @param Container $container Pimple DI container. |
| 45 | 45 | * @return EmailConfig |
| 46 | 46 | */ |
| 47 | - $container['email/config'] = function (Container $container): EmailConfig { |
|
| 47 | + $container['email/config'] = function(Container $container): EmailConfig { |
|
| 48 | 48 | $appConfig = $container['config']; |
| 49 | 49 | $emailConfig = new EmailConfig($appConfig['email']); |
| 50 | 50 | return $emailConfig; |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * @param Container $container Pimple DI container. |
| 55 | 55 | * @return ViewInterface |
| 56 | 56 | */ |
| 57 | - $container['email/view'] = function (Container $container): ViewInterface { |
|
| 57 | + $container['email/view'] = function(Container $container): ViewInterface { |
|
| 58 | 58 | return $container['view']; |
| 59 | 59 | }; |
| 60 | 60 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | $container['email/tracker'] = function(Container $container): Tracker { |
| 96 | 96 | return new Tracker( |
| 97 | - (string)$container['base-url'], |
|
| 97 | + (string) $container['base-url'], |
|
| 98 | 98 | $container['model/factory'] |
| 99 | 99 | ); |
| 100 | 100 | }; |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * @param Container $container Pimple DI container. |
| 104 | 104 | * @return \Charcoal\Email\EmailInterface |
| 105 | 105 | */ |
| 106 | - $container['email'] = $container->factory(function (Container $container): EmailInterface { |
|
| 106 | + $container['email'] = $container->factory(function(Container $container): EmailInterface { |
|
| 107 | 107 | return $container['email/factory']->create('email'); |
| 108 | 108 | }); |
| 109 | 109 | } |
@@ -271,7 +271,7 @@ |
||
| 271 | 271 | if ($result) { |
| 272 | 272 | // Clear cumbersome DB data |
| 273 | 273 | $this->setMsgHtml(null) |
| 274 | - ->setMsgTxt(null); |
|
| 274 | + ->setMsgTxt(null); |
|
| 275 | 275 | |
| 276 | 276 | array_push($propsToUpdate, 'msg_html', 'msg_txt'); |
| 277 | 277 | |