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.
Completed
Push — master ( cd59f8...9e7309 )
by Aden
25:22
created

CompatibilityServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace LaravelFlare\Flare\Providers;
4
5
use Illuminate\Foundation\AliasLoader;
6
use LaravelFlare\Flare\FlareModuleProvider as ServiceProvider;
7
8
class CompatibilityServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Array of Flare Service Providers to be Registered.
12
     * 
13
     * @var array
14
     */
15
    protected $serviceProviders = [
16
        'Edge' => [
17
            \LaravelFlare\Flare\Providers\Edge\RouteServiceProvider::class,
18
        ],
19
        'LTS' => [
20
            \LaravelFlare\Flare\Providers\LTS\RouteServiceProvider::class,
21
        ],
22
    ];
23
24
    /**
25
     * Perform post-registration booting of services.
26
     */
27
    public function boot()
28
    {
29
30
    }
31
32
    /**
33
     * Register any package services.
34
     */
35
    public function register()
36
    {
37
        $this->registerServiceProviders();
38
    }
39
40
    /**
41
     * Register Service Providers.
42
     */
43
    protected function registerServiceProviders()
44
    {
45
        foreach ($this->serviceProviders[$this->flare->compatibility()] as $class) {
46
            $this->app->register($class);
47
        }
48
    }
49
}
50