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