Completed
Push — master ( b78cbc...6c45fe )
by ARCANEDEV
16s
created

LaravelNotesServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

3 Methods

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