Completed
Pull Request — master (#79)
by Shingo
02:20
created
src/Transport/SendgridTransport.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         $payload = [
59 59
             'headers' => [
60
-                'Authorization' => 'Bearer ' . $this->apiKey,
60
+                'Authorization' => 'Bearer '.$this->apiKey,
61 61
                 'Content-Type' => 'application/json',
62 62
             ],
63 63
             'json' => $data,
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     private function getPersonalizations(Swift_Mime_SimpleMessage $message)
87 87
     {
88
-        $setter = function (array $addresses) {
88
+        $setter = function(array $addresses) {
89 89
             $recipients = [];
90 90
             foreach ($addresses as $email => $name) {
91 91
                 $address = [];
@@ -277,10 +277,10 @@  discard block
 block discarded – undo
277 277
         foreach ($personalizations as $index => $params) {
278 278
             foreach ($params as $key => $val) {
279 279
                 if (in_array($key, ['to', 'cc', 'bcc'])) {
280
-                    array_set($data, 'personalizations.' . $index . '.' . $key, [$val]);
280
+                    array_set($data, 'personalizations.'.$index.'.'.$key, [$val]);
281 281
                     ++$this->numberOfRecipients;
282 282
                 } else {
283
-                    array_set($data, 'personalizations.' . $index . '.' . $key, $val);
283
+                    array_set($data, 'personalizations.'.$index.'.'.$key, $val);
284 284
                 }
285 285
             }
286 286
         }
Please login to merge, or discard this patch.