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.
Completed
Pull Request — master (#4)
by Nikhil
35:12 queued 24:06
created

AppServiceProvider::boot()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 3.1406

Importance

Changes 3
Bugs 1 Features 0
Metric Value
c 3
b 1
f 0
dl 0
loc 9
ccs 6
cts 8
cp 0.75
rs 9.6666
cc 3
eloc 5
nc 4
nop 0
crap 3.1406
1
<?php
2
3
namespace App\Providers;
4
5
use DB;
6
use Illuminate\Database\SQLiteConnection;
7
use Illuminate\Support\ServiceProvider;
8
9
class AppServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap any application services.
13
     *
14
     * @return void
15
     */
16 90
    public function boot()
17
    {
18 90
        if ($this->app->environment('local')) {
0 ignored issues
show
Unused Code introduced by
The call to Application::environment() has too many arguments starting with 'local'.

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
19
            $this->app->register('Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider');
20
        }
21 90
        if (DB::connection() instanceof SQLiteConnection) {
22 90
            DB::statement(DB::raw('PRAGMA foreign_keys=1'));
23 90
        }
24 90
    }
25
26
    /**
27
     * Register any application services.
28
     *
29
     * @return void
30
     */
31 90
    public function register()
32
    {
33
        //
34 90
    }
35
}
36