AuthServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 15 1
A boot() 0 10 1
A provides() 0 6 1
1
<?php namespace Arcanesoft\Auth;
2
3
use Arcanesoft\Core\Bases\PackageServiceProvider;
4
5
/**
6
 * Class     AuthServiceProvider
7
 *
8
 * @package  Arcanesoft\Auth
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class AuthServiceProvider extends PackageServiceProvider
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Package name.
20
     *
21
     * @var string
22
     */
23
    protected $package = 'auth';
24
25
    /* -----------------------------------------------------------------
26
     |  Main Methods
27
     | -----------------------------------------------------------------
28
     */
29
30
    /**
31
     * Register the service provider.
32
     */
33 15
    public function register()
34
    {
35 15
        parent::register();
36
37 15
        $this->registerConfig();
38 15
        $this->registerSidebarItems();
39
40 15
        $this->registerProviders([
41 15
            Providers\PackagesServiceProvider::class,
42
            Providers\AuthorizationServiceProvider::class,
43
            Providers\ViewComposerServiceProvider::class,
44
            Providers\RouteServiceProvider::class,
45
        ]);
46 15
        $this->registerConsoleServiceProvider(Providers\CommandServiceProvider::class);
47 15
    }
48
49
    /**
50
     * Boot the service provider.
51
     */
52 15
    public function boot()
53
    {
54 15
        parent::boot();
55
56
        // Publishes
57 15
        $this->publishConfig();
58 15
        $this->publishViews();
59 15
        $this->publishTranslations();
60 15
        $this->publishSidebarItems();
61 15
    }
62
63
    /**
64
     * Get the services provided by the provider.
65
     *
66
     * @return array
67
     */
68 3
    public function provides()
69
    {
70
        return [
71
            //
72 3
        ];
73
    }
74
}
75