LarapieActionServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
crap 2
1
<?php
2
3
namespace Larapie\Actions;
4
5
use Illuminate\Support\ServiceProvider;
6
use Larapie\Actions\Commands\MakeActionCommand;
7
8
class LarapieActionServiceProvider extends ServiceProvider
9
{
10 72
    public function boot()
11
    {
12 72
        if ($this->app->runningInConsole()) {
13 72
            $this->commands([
14 72
                MakeActionCommand::class,
15
            ]);
16
        }
17 72
    }
18
}
19