Completed
Pull Request — master (#50)
by
unknown
05:05
created
src/Transport/SendgridV3Transport.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $this->client = $client;
29 29
         $this->options = [
30 30
             'headers' => [
31
-                'Authorization' => 'Bearer ' . $api_key,
31
+                'Authorization' => 'Bearer '.$api_key,
32 32
                 'Content-Type'  => 'application/json',
33 33
             ],
34 34
         ];
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     private function getPersonalizations(Swift_Mime_Message $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 = [];
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
         $smtp_api = [];
212 212
         foreach ($message->getChildren() as $attachment) {
213
-            if ( (!$attachment instanceof Swift_Image && !$attachment instanceof Swift_Attachment)
213
+            if ((!$attachment instanceof Swift_Image && !$attachment instanceof Swift_Attachment)
214 214
                 || !in_array(self::SMTP_API_NAME, [$attachment->getFilename(), $attachment->getContentType()])
215 215
             ) {
216 216
                 continue;
@@ -257,10 +257,10 @@  discard block
 block discarded – undo
257 257
         foreach ($personalizations as $index => $params) {
258 258
             foreach ($params as $key => $val) {
259 259
                 if (in_array($key, ['to', 'cc', 'bcc'])) {
260
-                    array_set($data, 'personalizations.' . $index . '.' . $key, [$val]);
260
+                    array_set($data, 'personalizations.'.$index.'.'.$key, [$val]);
261 261
                     ++$this->numberOfRecipients;
262 262
                 } else {
263
-                    array_set($data, 'personalizations.' . $index . '.' . $key, $val);
263
+                    array_set($data, 'personalizations.'.$index.'.'.$key, $val);
264 264
                 }
265 265
             }
266 266
         }
Please login to merge, or discard this patch.