Completed
Push — master ( 4e10b3...342152 )
by Shingo
05:34 queued 03:38
created
src/Transport/SendgridTransport.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $this->client = $client;
30 30
         $this->options = [
31 31
             'headers' => [
32
-                'Authorization' => 'Bearer ' . $api_key,
32
+                'Authorization' => 'Bearer '.$api_key,
33 33
                 'Content-Type'  => 'application/json',
34 34
             ],
35 35
         ];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     private function getPersonalizations(Swift_Mime_SimpleMessage $message)
88 88
     {
89
-        $setter = function (array $addresses) {
89
+        $setter = function(array $addresses) {
90 90
             $recipients = [];
91 91
             foreach ($addresses as $email => $name) {
92 92
                 $address = [];
@@ -274,10 +274,10 @@  discard block
 block discarded – undo
274 274
         foreach ($personalizations as $index => $params) {
275 275
             foreach ($params as $key => $val) {
276 276
                 if (in_array($key, ['to', 'cc', 'bcc'])) {
277
-                    array_set($data, 'personalizations.' . $index . '.' . $key, [$val]);
277
+                    array_set($data, 'personalizations.'.$index.'.'.$key, [$val]);
278 278
                     ++$this->numberOfRecipients;
279 279
                 } else {
280
-                    array_set($data, 'personalizations.' . $index . '.' . $key, $val);
280
+                    array_set($data, 'personalizations.'.$index.'.'.$key, $val);
281 281
                 }
282 282
             }
283 283
         }
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
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function sendgrid($params)
17 17
     {
18 18
         if ($this instanceof Mailable && $this->mailDriver() == "sendgrid") {
19
-            $this->withSwiftMessage(function (Swift_Message $message) use ($params) {
19
+            $this->withSwiftMessage(function(Swift_Message $message) use ($params) {
20 20
                 $message->embed(new \Swift_Image($params, SendgridTransport::SMTP_API_NAME));
21 21
             });
22 22
         }
Please login to merge, or discard this patch.