Completed
Push — master ( acd156...724220 )
by Michał
01:52
created
transports/mail/drivers/Postmark.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.