Completed
Push — dev ( 8e32e5...be5def )
by Shingo
10:08 queued 02:14
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
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         $this->client = $client;
24 24
         $this->options = [
25 25
             'headers' => [
26
-                'Authorization' => 'Bearer ' . $api_key,
26
+                'Authorization' => 'Bearer '.$api_key,
27 27
                 'Content-Type'  => 'application/json',
28 28
             ],
29 29
         ];
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     private function getPersonalizations(Swift_Mime_Message $message)
71 71
     {
72
-        $setter = function (array $addresses) {
72
+        $setter = function(array $addresses) {
73 73
             $recipients = [];
74 74
             foreach ($addresses as $email => $name) {
75 75
                 $address = [];
@@ -215,9 +215,9 @@  discard block
 block discarded – undo
215 215
         foreach ($personalizations as $index => $params) {
216 216
             foreach ($params as $key => $val) {
217 217
                 if (in_array($key, ['to', 'cc', 'bcc'])) {
218
-                    array_set($data, 'personalizations.' . $index . '.' . $key, [$val]);
218
+                    array_set($data, 'personalizations.'.$index.'.'.$key, [$val]);
219 219
                 } else {
220
-                    array_set($data, 'personalizations.' . $index . '.' . $key, $val);
220
+                    array_set($data, 'personalizations.'.$index.'.'.$key, $val);
221 221
                 }
222 222
             }
223 223
         }
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) {
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.