Completed
Pull Request — master (#159)
by Shingo
01:10 queued 34s
created
src/SendGrid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     public function sendgrid($params)
17 17
     {
18 18
         if (($this instanceof Mailable) && $this->mailDriver() == "sendgrid") {
19
-            $this->withSymfonyMessage(function (Email $email) use ($params) {
19
+            $this->withSymfonyMessage(function(Email $email) use ($params) {
20 20
                 $email->embed(static::sgEncode($params), SendgridTransport::REQUEST_BODY_PARAMETER);
21 21
             });
22 22
         }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public static function sgDecode($strParams)
51 51
     {
52 52
         if (!is_string($strParams)) {
53
-            return (array)$strParams;
53
+            return (array) $strParams;
54 54
         }
55 55
         $params = json_decode($strParams, true);
56 56
         return is_array($params) ? $params : [];
Please login to merge, or discard this patch.
src/Transport/SendgridTransport.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         $payload = [
74 74
             'headers' => [
75
-                'Authorization' => 'Bearer ' . $this->apiKey,
75
+                'Authorization' => 'Bearer '.$this->apiKey,
76 76
                 'Content-Type' => 'application/json',
77 77
             ],
78 78
             'json' => $data,
@@ -249,10 +249,10 @@  discard block
 block discarded – undo
249 249
         foreach ($personalizations as $index => $params) {
250 250
             foreach ($params as $key => $val) {
251 251
                 if (in_array($key, ['to', 'cc', 'bcc'])) {
252
-                    Arr::set($data, 'personalizations.' . $index . '.' . $key, $val);
252
+                    Arr::set($data, 'personalizations.'.$index.'.'.$key, $val);
253 253
                     ++$this->numberOfRecipients;
254 254
                 } else {
255
-                    Arr::set($data, 'personalizations.' . $index . '.' . $key, $val);
255
+                    Arr::set($data, 'personalizations.'.$index.'.'.$key, $val);
256 256
                 }
257 257
             }
258 258
         }
Please login to merge, or discard this patch.