Completed
Push — master ( bec07a...6a7354 )
by Andrey
02:53 queued 25s
created
src/IntercomServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/IntercomChannel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'
Please login to merge, or discard this patch.