Skip to content

Commit 374d536

Browse files
authored
Merge pull request #7 from laravel-notification-channels/analysis-qBA9K7
Applied fixes from StyleCI
2 parents 1c9f1f9 + c666b5d commit 374d536

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/TwilioChannel.php

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

@@ -39,17 +39,17 @@ public function send($notifiable, Notification $notification)
3939
$message = new TwilioSmsMessage($message);
4040
}
4141

42-
if (!in_array(get_class($message), [TwilioSmsMessage::class, TwilioCallMessage::class])) {
42+
if (! in_array(get_class($message), [TwilioSmsMessage::class, TwilioCallMessage::class])) {
4343
throw CouldNotSendNotification::invalidMessageObject($message);
4444
}
4545

46-
if (!$from = $message->from ?: config('services.twilio.from')) {
46+
if (! $from = $message->from ?: config('services.twilio.from')) {
4747
throw CouldNotSendNotification::missingFrom();
4848
}
4949

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

52-
if (!$shouldSendMessage) {
52+
if (! $shouldSendMessage) {
5353
return;
5454
}
5555

@@ -80,6 +80,7 @@ protected function sendMessage($message, $from, $to)
8080
$to,
8181
trim($message->content)
8282
);
83+
8384
return $response;
8485
}
8586

0 commit comments

Comments
 (0)