LaradeckCommandsServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 32
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 2
A register() 0 4 1
1
<?php
2
3
namespace Ngtfkx\Laradeck\Commands;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class LaradeckCommandsServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * @var array
11
     */
12
    protected $commands = [
13
        DownloadCommand::class,
14
        MakeViewCommand::class
15
    ];
16
17
    /**
18
     * Perform post-registration booting of services.
19
     *
20
     * @return void
21
     */
22
    public function boot()
23
    {
24
        if ($this->app->runningInConsole()) {
25
            $this->commands($this->commands);
26
        }
27
    }
28
29
    /**
30
     * Register any package services.
31
     *
32
     * @return void
33
     */
34
    public function register()
35
    {
36
        //
37
    }
38
}