Completed
Push — master ( 815b6a...60c4a7 )
by ARCANEDEV
05:35
created

SeoServiceProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 4
c 4
b 0
f 0
lcom 2
cbo 1
dl 0
loc 77
ccs 20
cts 20
cp 1
rs 10

4 Methods

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