PagesServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

3 Methods

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