Completed
Push — master ( 31cd79...e7be90 )
by Shingo
12s
created
src/Transport/SendgridTransport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         $this->client = $client;
22 22
         $this->options = [
23
-            'headers' => ['Authorization' => 'Bearer ' . $api_key]
23
+            'headers' => ['Authorization' => 'Bearer '.$api_key]
24 24
         ];
25 25
     }
26 26
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             }
137 137
             $handler = tmpfile();
138 138
             fwrite($handler, $attachment->getBody());
139
-            $data['files[' . $attachment->getFilename() . ']'] = $handler;
139
+            $data['files['.$attachment->getFilename().']'] = $handler;
140 140
         }
141 141
     }
142 142
 
Please login to merge, or discard this patch.
src/Transport/SendgridV3Transport.php 1 patch
Spacing   +4 added lines, -4 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 = [];
@@ -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.
src/SendGrid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function sendgrid($params)
15 15
     {
16 16
         if ($this instanceof Mailable && env('MAIL_DRIVER') == "sendgrid") {
17
-            $this->withSwiftMessage(function (Swift_Message $message) use ($params) {
17
+            $this->withSwiftMessage(function(Swift_Message $message) use ($params) {
18 18
                 $message->embed(\Swift_Image::newInstance($params, 'sendgrid/x-smtpapi'));
19 19
             });
20 20
         }
Please login to merge, or discard this patch.