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
Branch master (fafdd5)
by Cody
01:21
created

DiscordServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 0
cts 10
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
crap 2
1
<?php
2
3
namespace NotificationChannels\Discord;
4
5
use Illuminate\Support\ServiceProvider;
6
use NotificationChannels\Discord\Commands\SetupCommand;
7
8
class DiscordServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Register the application services.
12
     */
13
    public function register()
14
    {
15
        $this->app->bind('command.discord:setup', SetupCommand::class);
16
        $this->commands('command.discord:setup');
17
    }
18
19
    /**
20
     * Bootstrap the application services.
21
     */
22
    public function boot()
23
    {
24
        $token = $this->app->make('config')->get('services.discord.token');
25
26
        $this->app->when(Discord::class)
27
            ->needs('$token')
28
            ->give($token);
29
30
        $this->app->when(SetupCommand::class)
31
            ->needs('$token')
32
            ->give($token);
33
    }
34
}
35