AssetsServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php namespace Arcanedev\Assets;
2
3
use Arcanedev\Support\PackageServiceProvider;
4
5
/**
6
 * Class     AssetsServiceProvider
7
 *
8
 * @package  Arcanedev\Assets
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class AssetsServiceProvider extends PackageServiceProvider
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    protected $package = 'assets';
19
20
    /* -----------------------------------------------------------------
21
     |  Main Methods
22
     | -----------------------------------------------------------------
23
     */
24
25
    /**
26
     * Register the service provider.
27
     */
28 4
    public function register()
29
    {
30 4
        parent::register();
31
32 4
        $this->registerConfig();
33
34 4
        if ($this->app->runningInConsole()) {
35 4
            $this->commands([
36 4
                Console\InitCommand::class,
37
                Console\MakeCommand::class,
38
            ]);
39
        }
40 4
    }
41
42
    /**
43
     * Boot the service provider.
44
     */
45 4
    public function boot()
46
    {
47 4
        $this->publishConfig();
48 4
    }
49
}
50