Completed
Push — master ( 452c69...1c7106 )
by ARCANEDEV
03:23
created

TrackerServiceProvider::getBasePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php namespace Arcanesoft\Tracker;
2
3
use Arcanesoft\Core\Bases\PackageServiceProvider;
4
5
/**
6
 * Class     TrackerServiceProvider
7
 *
8
 * @package  Arcanesoft\Tracker
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class TrackerServiceProvider extends PackageServiceProvider
0 ignored issues
show
Bug introduced by
There is one abstract method getBasePath in this class; you could implement it, or declare this class as abstract.
Loading history...
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
    /**
18
     * Package name.
19
     *
20
     * @var string
21
     */
22
    protected $package = 'tracker';
23
24
    /* -----------------------------------------------------------------
25
     |  Main Methods
26
     | -----------------------------------------------------------------
27
     */
28
    /**
29
     * Register the service provider.
30
     */
31 6
    public function register()
32
    {
33 6
        parent::register();
34
35 6
        $this->registerConfig();
36 6
        $this->registerSidebarItems();
37 6
        $this->registerProviders([
38 6
            Providers\PackagesServiceProvider::class,
39 2
            Providers\AuthorizationServiceProvider::class,
40 2
            Providers\ComposerServiceProvider::class,
41 2
        ]);
42 6
        $this->registerConsoleServiceProvider(Providers\CommandServiceProvider::class);
43 6
    }
44
45
    /**
46
     * Boot the service provider.
47
     */
48 6
    public function boot()
49
    {
50 6
        parent::boot();
51
52 6
        $this->registerProvider(Providers\RouteServiceProvider::class);
53
54
        // Publishes
55 6
        $this->publishConfig();
56 6
        $this->publishViews();
57 6
        $this->publishTranslations();
58 6
        $this->publishSidebarItems();
59 6
    }
60
61
    /**
62
     * Get the services provided by the provider.
63
     *
64
     * @return array
65
     */
66 3
    public function provides()
67
    {
68
        return [
69
            //
70 3
        ];
71
    }
72
}
73