Completed
Push — master ( daa5fb...f92fd0 )
by Cody
02:32
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