Completed
Push — master ( 816440...cac82f )
by Vladimir
12:37
created

ToolbeltServiceProvider::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\Toolbelt;
6
7
use Illuminate\Support\ServiceProvider;
8
9
class ToolbeltServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Define toolbelt commands.
13
     */
14
    public function boot(): void
15
    {
16
        if ($this->app->runningInConsole()) {
17
            $this->commands([
18
                MakeIntent::class,
19
                MakeInteraction::class,
20
                ListDrivers::class,
21
                InstallDriver::class,
22
                ListChannels::class,
23
            ]);
24
        }
25
    }
26
}
27