GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

GeniusServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 1
c 2
b 1
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace genius;
4
5
use Arcanedev\Support\PackageServiceProvider;
6
use Genius\Providers\CommandsServiceProvider;
7
use Genius\Contacts\GeniusInterface;
8
use Genius\Services\GeniusService;
9
10
/**
11
 * Class     Genius Service Provider
12
 *
13
 * @package  Htinlynn\Genius
14
 * @author   HtinLynn <[email protected]>
15
 */
16
class GeniusServiceProvider extends PackageServiceProvider
17
{
18
    /* -----------------------------------------------------------------
19
     |  Properties
20
     | -----------------------------------------------------------------
21
     */
22
23
    /**
24
     * Package name.
25
     *
26
     * @var string
27
     */
28
    protected $package = 'genius';
29
30
    /**
31
     *
32
     */
33
    public function boot()
34
    {
35
        parent::boot();
36
    }
37
38
    /**
39
     * Get the services provided by the provider.
40
     *
41
     * @return array
42
     */
43
    public function provides()
44
    {
45
        return [
46
            GeniusInterface::class
47
        ];
48
    }
49
50
    /**
51
     *
52
     */
53
    public function register()
54
    {
55
        parent::register();
56
        $this->registerConfig();
57
        $this->registerGeniusService();
58
        $this->registerAliases();
59
        $this->registerConsoleServiceProvider(CommandsServiceProvider::class);
60
    }
61
62
63
    /* -----------------------------------------------------------------
64
     |  Other Methods
65
     | -----------------------------------------------------------------
66
     */
67
68
    /**
69
     * Register the log data class.
70
     */
71
    private function registerGeniusService()
72
    {
73
        //Bind Important Interfaces
74
        $this->singleton(
75
            GeniusInterface::class,
76
            GeniusService::class
77
        );
78
79
        // Registering the Facade
80
        if ($facade = $this->config()->get('genius.facade')) {
81
            $this->alias($facade, Facades\Genius::class);
82
        }
83
    }
84
}
85
86