Completed
Push — master ( afce1d...f8221d )
by Vladimir
09:37
created

ConsoleServiceProvider::boot()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
eloc 8
nc 2
nop 0
dl 0
loc 12
ccs 0
cts 5
cp 0
crap 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Providers;
6
7
use FondBot\Console;
8
use Illuminate\Support\ServiceProvider;
9
10
class ConsoleServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Bootstrap the application services.
14
     *
15
     * @return void
16
     */
17
    public function boot(): void
18
    {
19
        if ($this->app->runningInConsole()) {
20
            $this->commands([
21
                Console\MakeIntent::class,
22
                Console\MakeInteraction::class,
23
                Console\ListDrivers::class,
24
                Console\InstallDriver::class,
25
                Console\ListChannels::class,
26
            ]);
27
        }
28
    }
29
30
    /**
31
     * Register the service provider.
32
     *
33
     * @return void
34
     */
35
    public function register(): void
36
    {
37
    }
38
}
39