Skip to content

Commit 09d804e

Browse files
authored
Merge pull request #6 from laravel-notification-channels/analysis-Xk2BGG
Applied fixes from StyleCI
2 parents e98d166 + a4a60de commit 09d804e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/TwilioChannel.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(Services_Twilio $twilio)
3030
*/
3131
public function send($notifiable, Notification $notification)
3232
{
33-
if (!$to = $notifiable->routeNotificationFor('twilio')) {
33+
if (! $to = $notifiable->routeNotificationFor('twilio')) {
3434
return;
3535
}
3636

@@ -48,19 +48,19 @@ public function send($notifiable, Notification $notification)
4848
throw CouldNotSendNotification::invalidMessageObject($class);
4949
}
5050

51-
if (!$from = $message->from ?: config('services.twilio.from')) {
51+
if (! $from = $message->from ?: config('services.twilio.from')) {
5252
throw CouldNotSendNotification::missingFrom();
5353
}
5454

5555
$shouldSendMessage = event(new SendingMessage($notifiable, $notification, $message), [], true) !== false;
5656

57-
if (!$shouldSendMessage) {
57+
if (! $shouldSendMessage) {
5858
return;
5959
}
6060

6161
$response = null;
6262

63-
/** @var TwilioSmsMessage|TwilioCallMessage $message */
63+
/* @var TwilioSmsMessage|TwilioCallMessage $message */
6464
try {
6565
if ($message instanceof TwilioSmsMessage) {
6666
$response = $this->twilio->account->messages->sendMessage(

0 commit comments

Comments
 (0)