@@ -5,9 +5,9 @@ |
||
| 5 | 5 | namespace tuyakhov\notifications\channels; |
| 6 | 6 | |
| 7 | 7 | |
| 8 | -use tuyakhov\notifications\messages\MailMessage; |
|
| 9 | 8 | use tuyakhov\notifications\NotifiableInterface; |
| 10 | 9 | use tuyakhov\notifications\NotificationInterface; |
| 10 | +use tuyakhov\notifications\messages\MailMessage; |
|
| 11 | 11 | use yii\base\Component; |
| 12 | 12 | use yii\di\Instance; |
| 13 | 13 | use yii\mail\MailerInterface; |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $recipients = [$recipients]; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - if (!is_array($notifications)){ |
|
| 74 | + if (!is_array($notifications)) { |
|
| 75 | 75 | /** |
| 76 | 76 | * @var $notifications NotificationInterface[] |
| 77 | 77 | */ |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | ->createRequest() |
| 57 | 57 | ->setMethod('post') |
| 58 | 58 | ->setUrl($this->getUri()) |
| 59 | - ->addHeaders(['Authorization' => 'Basic ' . base64_encode("{$this->accountSid}:{$this->authToken}")]) |
|
| 59 | + ->addHeaders(['Authorization' => 'Basic '.base64_encode("{$this->accountSid}:{$this->authToken}")]) |
|
| 60 | 60 | ->setData($data) |
| 61 | 61 | ->send(); |
| 62 | 62 | } |