AssetsServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 39
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 13 2
A boot() 0 4 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