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.

PrequelServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 12 1
A boot() 0 20 1
1
<?php
2
3
declare(strict_types = 1);
4
5
/**
6
 * Protoqol\Prequel\PrequelServiceProvider
7
 */
8
9
namespace Protoqol\Prequel;
10
11
use Illuminate\Support\ServiceProvider;
12
use Protoqol\Prequel\Classes\Database\DatabaseTraverser;
13
14
/**
15
 * Class PrequelServiceProvider
16
 *
17
 * @package Protoqol\Prequel
18
 */
19
class PrequelServiceProvider extends ServiceProvider
20
{
21
22
    /**
23
     * Register services.
24
     *
25
     * @return void
26
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
27
     */
28
    public function register()
29
    {
30
        $this->app->make('Protoqol\Prequel\Http\Controllers\PrequelController');
31
32
        $this->app->singleton(
33
            DatabaseTraverser::class,
34
            function () {
35
                return new DatabaseTraverser();
36
            }
37
        );
38
39
        $this->loadViewsFrom(dirname(__DIR__).'/resources/views', 'Prequel');
40
    }
41
42
    /**
43
     * Bootstrap services.
44
     *
45
     * @return void
46
     */
47
    public function boot()
48
    {
49
50
        $this->loadRoutesFrom(__DIR__.'/Http/routes.php');
51
52
        $this->publishes([
53
            dirname(__DIR__)
54
            .'/config/prequel.php' => config_path('prequel.php'),
55
        ],
56
	'config');
57
58
        $this->mergeConfigFrom(
59
            dirname(__DIR__).'/config/prequel.php',
60
            'prequel'
61
        );
62
63
        $this->publishes([
64
                dirname(__DIR__).'/public' => public_path('vendor/prequel'),
65
            ],
66
        'public');
67
    }
68
}
69