Completed
Pull Request — master (#159)
by Shingo
01:13 queued 50s
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   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $payload = [
79 79
             'headers' => [
80
-                'Authorization' => 'Bearer ' . $this->apiKey,
80
+                'Authorization' => 'Bearer '.$this->apiKey,
81 81
                 'Content-Type' => 'application/json',
82 82
             ],
83 83
             'json' => $data,
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
     private function getAttachmentContentType(Datapart $dataPart): string
211 211
     {
212
-        return $dataPart->getMediaType() . '/' . $dataPart->getMediaSubtype();
212
+        return $dataPart->getMediaType().'/'.$dataPart->getMediaSubtype();
213 213
     }
214 214
 
215 215
     /**
@@ -259,10 +259,10 @@  discard block
 block discarded – undo
259 259
         foreach ($personalizations as $index => $params) {
260 260
             foreach ($params as $key => $val) {
261 261
                 if (in_array($key, ['to', 'cc', 'bcc'])) {
262
-                    Arr::set($data, 'personalizations.' . $index . '.' . $key, $val);
262
+                    Arr::set($data, 'personalizations.'.$index.'.'.$key, $val);
263 263
                     ++$this->numberOfRecipients;
264 264
                 } else {
265
-                    Arr::set($data, 'personalizations.' . $index . '.' . $key, $val);
265
+                    Arr::set($data, 'personalizations.'.$index.'.'.$key, $val);
266 266
                 }
267 267
             }
268 268
         }
Please login to merge, or discard this patch.