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.

ServiceProvider::provides()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
4
namespace MuCTS\Laravel\GuiJK\Providers;
5
6
7
use Illuminate\Contracts\Support\DeferrableProvider;
8
use Illuminate\Support\ServiceProvider as Provider;
9
use MuCTS\Laravel\GuiJK\Gjk;
10
11
class ServiceProvider extends Provider implements DeferrableProvider
12
{
13
    public function register()
14
    {
15
        $this->mergeConfigFrom(
16
            dirname(__DIR__) . '/../config/gjk.php', 'gjk'
17
        );
18
        $this->app->singleton('gjk', function ($app) {
19
            return new Gjk($app->config['gjk']);
20
        });
21
    }
22
23
    public function boot()
24
    {
25
        if (!file_exists(config_path('gjk.php'))) {
26
            $this->publishes([
27
                dirname(__DIR__) . '/../config/gjk.php' => config_path('gjk.php'),
28
            ], 'config');
29
        }
30
    }
31
32
    public function provides()
33
    {
34
        return ['gjk', Gjk::class];
35
    }
36
}