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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 1
cbo 4
dl 0
loc 27
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 14 1
A register() 0 3 1
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
}