@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | { |
18 | 18 | $this->app->when(IntercomChannel::class) |
19 | 19 | ->needs(IntercomClient::class) |
20 | - ->give(function () { |
|
20 | + ->give(function() { |
|
21 | 21 | /* @var Config $config */ |
22 | 22 | return new IntercomClient( |
23 | 23 | Config::get('services.intercom.token'), |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function register() |
33 | 33 | { |
34 | - Notification::extend('intercom', function (Container $app) { |
|
34 | + Notification::extend('intercom', function(Container $app) { |
|
35 | 35 | return $app->make(IntercomChannel::class); |
36 | 36 | }); |
37 | 37 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | public function send($notifiable, Notification $notification): void |
50 | 50 | { |
51 | 51 | try { |
52 | - if (! $notification instanceof IntercomNotification) { |
|
52 | + if (!$notification instanceof IntercomNotification) { |
|
53 | 53 | throw new InvalidArgumentException( |
54 | 54 | sprintf('The notification must implement %s interface', IntercomNotification::class) |
55 | 55 | ); |
@@ -57,15 +57,15 @@ discard block |
||
57 | 57 | |
58 | 58 | $message = $notification->toIntercom($notifiable); |
59 | 59 | |
60 | - if (! $message->toIsGiven()) { |
|
61 | - if (! $to = $notifiable->routeNotificationFor('intercom')) { |
|
60 | + if (!$message->toIsGiven()) { |
|
61 | + if (!$to = $notifiable->routeNotificationFor('intercom')) { |
|
62 | 62 | throw new MessageIsNotCompleteException($message, 'Recipient is not provided'); |
63 | 63 | } |
64 | 64 | |
65 | 65 | $message->to($to); |
66 | 66 | } |
67 | 67 | |
68 | - if (! $message->isValid()) { |
|
68 | + if (!$message->isValid()) { |
|
69 | 69 | throw new MessageIsNotCompleteException( |
70 | 70 | $message, |
71 | 71 | 'The message is not valid. Please check that you have filled required params' |