BackupsServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

3 Methods

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