ServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 6
c 1
b 0
f 1
dl 0
loc 15
rs 10
wmc 3

2 Methods

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