LaradeckCommandsServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
cc 2
eloc 3
nc 2
nop 0
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
}