Completed
Push — master ( b112db...b25060 )
by Vladimir
10:13
created

ToolbeltServiceProvider::boot()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 8
nc 2
nop 0
dl 0
loc 12
ccs 5
cts 5
cp 1
crap 2
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 83
    public function boot(): void
15
    {
16 83
        if ($this->app->runningInConsole()) {
17 83
            $this->commands([
18 83
                MakeIntent::class,
19
                MakeInteraction::class,
20
                ListDrivers::class,
21
                InstallDriver::class,
22
                ListChannels::class,
23
            ]);
24
        }
25 83
    }
26
}
27