RefactorServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 2
A register() 0 2 1
1
<?php
2
3
namespace Signifly\DatabaseRefactors;
4
5
use Illuminate\Support\ServiceProvider;
6
use Signifly\DatabaseRefactors\Commands\RefactorDbCommand;
7
use Signifly\DatabaseRefactors\Commands\RefactorMakeCommand;
8
9
class RefactorServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap the application services.
13
     *
14
     * @return void
15
     */
16
    public function boot()
17
    {
18
        if ($this->app->runningInConsole()) {
19
            $this->commands([
20
                RefactorDbCommand::class,
21
                RefactorMakeCommand::class,
22
            ]);
23
        }
24
    }
25
26
    /**
27
     * Register the service provider.
28
     *
29
     * @return void
30
     */
31
    public function register()
32
    {
33
        //
34
    }
35
}
36