GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 40bfe1...ddac30 )
by Freek
02:46 queued 51s
created

PusherPushNotificationsServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace NotificationChannels\PusherPushNotifications;
4
5
use Illuminate\Support\ServiceProvider;
6
use Pusher;
7
8
class PusherPushNotificationsServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot()
14
    {
15
        $this->app->when(Channel::class)
16
            ->needs(Pusher::class)
17
            ->give(function () {
18
                $pusherConfig = config('broadcasting.connections.pusher');
19
20
                return new Pusher(
21
                    $pusherConfig['key'],
22
                    $pusherConfig['secret'],
23
                    $pusherConfig['app_id']
24
                );
25
            });
26
    }
27
28
    /**
29
     * Register the application services.
30
     */
31
    public function register()
32
    {
33
    }
34
}