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   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 4

3 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 1
A boot() 0 6 2
A provides() 0 3 1
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
}