Completed
Pull Request — master (#77)
by
unknown
05:58
created
src/Transport/SendgridTransport.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $this->apiKey = $api_key;
32 32
         $this->options = [
33 33
             'headers' => [
34
-                'Authorization' => 'Bearer ' . $api_key,
34
+                'Authorization' => 'Bearer '.$api_key,
35 35
                 'Content-Type'  => 'application/json',
36 36
             ],
37 37
         ];
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $payload['json'] = $data;
68 68
 
69
-        array_set($payload, 'headers.Authorization', 'Bearer ' . $this->apiKey);
69
+        array_set($payload, 'headers.Authorization', 'Bearer '.$this->apiKey);
70 70
 
71 71
         $response = $this->post($payload);
72 72
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     private function getPersonalizations(Swift_Mime_SimpleMessage $message)
92 92
     {
93
-        $setter = function (array $addresses) {
93
+        $setter = function(array $addresses) {
94 94
             $recipients = [];
95 95
             foreach ($addresses as $email => $name) {
96 96
                 $address = [];
@@ -282,10 +282,10 @@  discard block
 block discarded – undo
282 282
         foreach ($personalizations as $index => $params) {
283 283
             foreach ($params as $key => $val) {
284 284
                 if (in_array($key, ['to', 'cc', 'bcc'])) {
285
-                    array_set($data, 'personalizations.' . $index . '.' . $key, [$val]);
285
+                    array_set($data, 'personalizations.'.$index.'.'.$key, [$val]);
286 286
                     ++$this->numberOfRecipients;
287 287
                 } else {
288
-                    array_set($data, 'personalizations.' . $index . '.' . $key, $val);
288
+                    array_set($data, 'personalizations.'.$index.'.'.$key, $val);
289 289
                 }
290 290
             }
291 291
         }
Please login to merge, or discard this patch.