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 ( 074a9c...daa5fb )
by Cody
02:35
created

DiscordServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 1
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 1
    public function register()
11
    {
12 1
        $this->app->bind('command.discord:setup', SetupCommand::class);
13
14 1
        if ($this->app->runningInConsole()) {
0 ignored issues
show
Bug introduced by
The method runningInConsole() does not seem to exist on object<Illuminate\Contra...Foundation\Application>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
15 1
            $this->commands('command.discord:setup');
16 1
        }
17 1
    }
18
19 1
    public function boot()
20
    {
21 1
        $this->app->when(Discord::class)
22 1
            ->needs('$token')
23 1
            ->give($this->app->make('config')->get('services.discord.token'));
24 1
    }
25
}
26