Completed
Push — endpoint-conf ( 694697...ece86d )
by Shingo
01:53
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.
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(static::sgEncode($params), SendgridTransport::SMTP_API_NAME));
21 21
             });
22 22
         }
Please login to merge, or discard this patch.