LaravelSeoServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

3 Methods

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