AssetsServiceProvider::register()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 7
cts 7
cp 1
rs 9.8333
c 0
b 0
f 0
cc 2
nc 2
nop 0
crap 2
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