@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | $this->client = $client; |
| 22 | 22 | $this->options = [ |
| 23 | - 'headers' => ['Authorization' => 'Bearer ' . $api_key] |
|
| 23 | + 'headers' => ['Authorization' => 'Bearer '.$api_key] |
|
| 24 | 24 | ]; |
| 25 | 25 | } |
| 26 | 26 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | } |
| 137 | 137 | $handler = tmpfile(); |
| 138 | 138 | fwrite($handler, $attachment->getBody()); |
| 139 | - $data['files[' . $attachment->getFilename() . ']'] = $handler; |
|
| 139 | + $data['files['.$attachment->getFilename().']'] = $handler; |
|
| 140 | 140 | } |
| 141 | 141 | } |
| 142 | 142 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $this->client = $client; |
| 24 | 24 | $this->options = [ |
| 25 | 25 | 'headers' => [ |
| 26 | - 'Authorization' => 'Bearer ' . $api_key, |
|
| 26 | + 'Authorization' => 'Bearer '.$api_key, |
|
| 27 | 27 | 'Content-Type' => 'application/json', |
| 28 | 28 | ], |
| 29 | 29 | ]; |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | private function getPersonalizations(Swift_Mime_Message $message) |
| 71 | 71 | { |
| 72 | - $setter = function (array $addresses) { |
|
| 72 | + $setter = function(array $addresses) { |
|
| 73 | 73 | $recipients = []; |
| 74 | 74 | foreach ($addresses as $email => $name) { |
| 75 | 75 | $address = []; |
@@ -215,9 +215,9 @@ discard block |
||
| 215 | 215 | foreach ($personalizations as $index => $params) { |
| 216 | 216 | foreach ($params as $key => $val) { |
| 217 | 217 | if (in_array($key, ['to', 'cc', 'bcc'])) { |
| 218 | - array_set($data, 'personalizations.' . $index . '.' . $key, [$val]); |
|
| 218 | + array_set($data, 'personalizations.'.$index.'.'.$key, [$val]); |
|
| 219 | 219 | } else { |
| 220 | - array_set($data, 'personalizations.' . $index . '.' . $key, $val); |
|
| 220 | + array_set($data, 'personalizations.'.$index.'.'.$key, $val); |
|
| 221 | 221 | } |
| 222 | 222 | } |
| 223 | 223 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | $this->sg_params = $params ?: $this->sg_params; |
| 42 | 42 | if ($this instanceof Mailable) { |
| 43 | - $this->withSwiftMessage(function (Swift_Message $message) { |
|
| 43 | + $this->withSwiftMessage(function(Swift_Message $message) { |
|
| 44 | 44 | $message->embed(\Swift_Image::newInstance($this->sg_params, 'sendgrid/x-smtpapi')); |
| 45 | 45 | }); |
| 46 | 46 | } |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | |
| 133 | 133 | public function toArray() |
| 134 | 134 | { |
| 135 | - return array_filter(json_decode(json_encode($this), true), function ($val) { |
|
| 135 | + return array_filter(json_decode(json_encode($this), true), function($val) { |
|
| 136 | 136 | return !empty($val); |
| 137 | 137 | }); |
| 138 | 138 | } |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | public function toArray() |
| 72 | 72 | { |
| 73 | - return array_filter(json_decode(json_encode($this), true), function ($val) { |
|
| 73 | + return array_filter(json_decode(json_encode($this), true), function($val) { |
|
| 74 | 74 | return !empty($val); |
| 75 | 75 | }); |
| 76 | 76 | } |
@@ -1,4 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Sichikawa\LaravelSendgridDriver\Api\Email; |
| 3 | 3 | |
| 4 | -class Cc extends Email{} |
|
| 5 | 4 | \ No newline at end of file |
| 5 | +class Cc extends Email {} |
|
| 6 | 6 | \ No newline at end of file |
@@ -1,4 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Sichikawa\LaravelSendgridDriver\Api\Email; |
| 3 | 3 | |
| 4 | -class Bcc extends Email{} |
|
| 5 | 4 | \ No newline at end of file |
| 5 | +class Bcc extends Email {} |
|
| 6 | 6 | \ No newline at end of file |
@@ -1,4 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Sichikawa\LaravelSendgridDriver\Api\Email; |
| 3 | 3 | |
| 4 | -class To extends Email{} |
|
| 5 | 4 | \ No newline at end of file |
| 5 | +class To extends Email {} |
|
| 6 | 6 | \ No newline at end of file |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | public function toArray() |
| 89 | 89 | { |
| 90 | - return array_filter(json_decode(json_encode($this), true), function ($val) { |
|
| 90 | + return array_filter(json_decode(json_encode($this), true), function($val) { |
|
| 91 | 91 | return !empty($val); |
| 92 | 92 | }); |
| 93 | 93 | } |