@@ -8,8 +8,8 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\postmark; |
10 | 10 | |
11 | -use craft\helpers\Json; |
|
12 | 11 | use Psr\Http\Message\ResponseInterface; |
12 | +use craft\helpers\Json; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @author Flipbox Factory <[email protected]> |
@@ -46,9 +46,9 @@ discard block |
||
46 | 46 | protected function getRecipientCount(\Swift_Mime_Message $message): int |
47 | 47 | { |
48 | 48 | return ( |
49 | - count((array)$message->getTo()) |
|
50 | - + count((array)$message->getCc()) |
|
51 | - + count((array)$message->getBcc()) |
|
49 | + count((array) $message->getTo()) |
|
50 | + + count((array) $message->getCc()) |
|
51 | + + count((array) $message->getBcc()) |
|
52 | 52 | ); |
53 | 53 | } |
54 | 54 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | ); |
64 | 64 | |
65 | 65 | if (is_array($error)) { |
66 | - $error['StatusCode'] = $response->getStatusCode(); |
|
66 | + $error[ 'StatusCode' ] = $response->getStatusCode(); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | return $error; |
@@ -72,7 +72,7 @@ |
||
72 | 72 | { |
73 | 73 | return [ |
74 | 74 | 'class' => Transport::class, |
75 | - 'constructArgs' => [$this->token] |
|
75 | + 'constructArgs' => [ $this->token ] |
|
76 | 76 | ]; |
77 | 77 | } |
78 | 78 | } |
@@ -30,8 +30,8 @@ |
||
30 | 30 | Event::on( |
31 | 31 | MailerHelper::class, |
32 | 32 | MailerHelper::EVENT_REGISTER_MAILER_TRANSPORT_TYPES, |
33 | - function (RegisterComponentTypesEvent $event) { |
|
34 | - $event->types[] = Adapter::class; |
|
33 | + function(RegisterComponentTypesEvent $event) { |
|
34 | + $event->types[ ] = Adapter::class; |
|
35 | 35 | } |
36 | 36 | ); |
37 | 37 | } |