LaravelEnumServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 2
1
<?php
2
3
namespace Cerbero\LaravelEnum\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Cerbero\LaravelEnum\Console\Commands\EnumMakeCommand;
7
8
/**
9
 * The Laravel Enum service provider.
10
 *
11
 */
12
class LaravelEnumServiceProvider extends ServiceProvider
13
{
14
    /**
15
     * Bootstrap the application services.
16
     *
17
     * @return void
18
     */
19 15
    public function boot()
20
    {
21 15
        if ($this->app->runningInConsole()) {
22 15
            $this->commands([
23 15
                EnumMakeCommand::class,
24
            ]);
25
        }
26 15
    }
27
}
28