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

src/DiscordServiceProvider.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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
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