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.
Passed
Push — master ( 701ee8...c3fca5 )
by Tharindu
15:31 queued 11:57
created

AuthServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 17
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
3
namespace App\Providers;
4
5
use Laravel\Passport\Passport;
6
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
7
8
class AuthServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * The policy mappings for the application.
12
     *
13
     * @var array
14
     */
15
    protected $policies = [
16
        'App\Model' => 'App\Policies\ModelPolicy',
17
    ];
18
19
    /**
20
     * Register any authentication / authorization services.
21
     */
22 2
    public function boot()
23
    {
24 2
        $this->registerPolicies();
25
26
        /*Passport::routes(
27
            function ($router) {
28
                $router->forAuthorization();
29
                $router->forAccessTokens();
30
                $router->forTransientTokens();
31
                $router->forClients();
32
                $router->forPersonalAccessTokens();
33
            }
34
        );*/
35
36 2
        Passport::tokensExpireIn(now()->addDays(15));
37
38 2
        Passport::refreshTokensExpireIn(now()->addDays(30));
39 2
    }
40
}
41