Completed
Pull Request — master (#1)
by ARCANEDEV
04:24
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 10
cts 10
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 54
    public function register()
34
    {
35 54
        parent::register();
36
37
        $this->registerConfig();
38
    }
39
40
    /**
41
     * Boot the service provider.
42
     */
43
    public function boot()
44
    {
45 54
        parent::boot();
46
47 54
        $this->publishConfig();
48 54
        $this->loadMigrations();
49
    }
50
51
    /**
52
     * Get the services provided by the provider.
53 54
     *
54
     * @return array
55 54
     */
56
    public function provides()
57 54
    {
58 54
        return [];
59 54
    }
60
}
61