@@ -16,7 +16,7 @@ discard block |
||
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 |
||
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 : []; |
@@ -77,7 +77,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |