ServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
eloc 5
c 1
b 0
f 1
nc 2
nop 0
dl 0
loc 7
rs 10
1
<?php
2
3
namespace Blok\Repository;
4
5
use Blok\Repository\Commands\ControllerApiMakeCommand;
6
use Blok\Repository\Commands\CriteriaMakeCommand;
7
use Blok\Repository\Commands\RepositoryMakeCommand;
8
9
class ServiceProvider extends \Illuminate\Support\ServiceProvider
10
{
11
    public function boot()
12
    {
13
        if ($this->app->runningInConsole()) {
14
            $this->commands([
15
                RepositoryMakeCommand::class,
16
                ControllerApiMakeCommand::class,
17
                CriteriaMakeCommand::class,
18
            ]);
19
        }
20
    }
21
22
    public function register()
23
    {
24
25
    }
26
}
27