ScopeMakeCommandServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
eloc 4
c 2
b 0
f 0
dl 0
loc 26
ccs 8
cts 8
cp 1
rs 10

3 Methods

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