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

ToolbeltServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 18
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 12 2
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