@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $this->apiKey = $api_key; |
| 32 | 32 | $this->options = [ |
| 33 | 33 | 'headers' => [ |
| 34 | - 'Authorization' => 'Bearer ' . $api_key, |
|
| 34 | + 'Authorization' => 'Bearer '.$api_key, |
|
| 35 | 35 | 'Content-Type' => 'application/json', |
| 36 | 36 | ], |
| 37 | 37 | ]; |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | $payload['json'] = $data; |
| 68 | 68 | |
| 69 | - array_set($payload, 'headers.Authorization', 'Bearer ' . $this->apiKey); |
|
| 69 | + array_set($payload, 'headers.Authorization', 'Bearer '.$this->apiKey); |
|
| 70 | 70 | |
| 71 | 71 | $response = $this->post($payload); |
| 72 | 72 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | private function getPersonalizations(Swift_Mime_SimpleMessage $message) |
| 92 | 92 | { |
| 93 | - $setter = function (array $addresses) { |
|
| 93 | + $setter = function(array $addresses) { |
|
| 94 | 94 | $recipients = []; |
| 95 | 95 | foreach ($addresses as $email => $name) { |
| 96 | 96 | $address = []; |
@@ -282,10 +282,10 @@ discard block |
||
| 282 | 282 | foreach ($personalizations as $index => $params) { |
| 283 | 283 | foreach ($params as $key => $val) { |
| 284 | 284 | if (in_array($key, ['to', 'cc', 'bcc'])) { |
| 285 | - array_set($data, 'personalizations.' . $index . '.' . $key, [$val]); |
|
| 285 | + array_set($data, 'personalizations.'.$index.'.'.$key, [$val]); |
|
| 286 | 286 | ++$this->numberOfRecipients; |
| 287 | 287 | } else { |
| 288 | - array_set($data, 'personalizations.' . $index . '.' . $key, $val); |
|
| 288 | + array_set($data, 'personalizations.'.$index.'.'.$key, $val); |
|
| 289 | 289 | } |
| 290 | 290 | } |
| 291 | 291 | } |