LaravelPackagesServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace BukanKalengKaleng\LaravelPackages;
4
5
use Illuminate\Support\ServiceProvider;
6
use BukanKalengKaleng\LaravelPackages\Console\Commands\LaravelPackages;
7
8
class LaravelPackagesServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        if ($this->app->runningInConsole()) {
18
            $this->commands([
19
                LaravelPackages::class,
20
            ]);
21
        }
22
    }
23
24
    /**
25
     * Register services.
26
     *
27
     * @return void
28
     */
29
    public function register()
30
    {
31
        //
32
    }
33
}
34