@@ -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); |