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.

CompatibilityServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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