@@ -158,7 +158,7 @@ |
||
158 | 158 | /** |
159 | 159 | * Converts an array of e-mail addresses into a string compliant with Postmark's API's format. |
160 | 160 | * |
161 | - * @param array $emails The e-mail addresses to convert. |
|
161 | + * @param string[] $emails The e-mail addresses to convert. |
|
162 | 162 | * @return string |
163 | 163 | */ |
164 | 164 | protected function emailsToString(array $emails) : string |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function send(\Swift_Mime_Message $message, &$failedRecipients = null) |
48 | 48 | { |
49 | - $this->client->request('POST','https://api.postmarkapp.com/email', [ |
|
49 | + $this->client->request('POST', 'https://api.postmarkapp.com/email', [ |
|
50 | 50 | 'headers' => [ |
51 | 51 | 'X-Postmark-Server-Token' => $this->key |
52 | 52 | ], |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | // Special treatment for the 'X-PM-Tag' header if it's available, which we'll pass into the payload |
104 | 104 | // directly. |
105 | - if ($fieldName === 'X-PM-Tag'){ |
|
105 | + if ($fieldName === 'X-PM-Tag') { |
|
106 | 106 | $payload["Tag"] = $header->getValue(); |
107 | 107 | } else { |
108 | 108 | $payload['Headers'][] = [ |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | $addresses = []; |
167 | 167 | |
168 | 168 | foreach ($emails as $email => $name) { |
169 | - $addresses[] = $name ? '"' . str_replace('"', '\\"', $name) . "\" <{$email}>" : $email; |
|
169 | + $addresses[] = $name ? '"'.str_replace('"', '\\"', $name)."\" <{$email}>" : $email; |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | return implode(',', $addresses); |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * Parses the first and only the first address from the given array of e-mail addresses into a structure |
153 | 153 | * understood by Sendgrid's API. |
154 | 154 | * |
155 | - * @param array $addresses The e-mail addresses to parse. |
|
155 | + * @param string[] $addresses The e-mail addresses to parse. |
|
156 | 156 | * @return array |
157 | 157 | */ |
158 | 158 | protected function processFirstAddress(array $addresses) : array |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | /** |
173 | 173 | * Parses the given array of e-mail addresses into a structure understood by Sendgrid's API. |
174 | 174 | * |
175 | - * @param array $addresses The e-mail addresses to parse. |
|
175 | + * @param string[] $addresses The e-mail addresses to parse. |
|
176 | 176 | * @return array |
177 | 177 | */ |
178 | 178 | protected function processAllAddresses(array $addresses) : array |