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.
Test Setup Failed
Push — master ( 273301...d40dfb )
by Nikhil
19:35 queued 09:51
created

AppServiceProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 80%

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 4
c 3
b 1
f 0
lcom 1
cbo 2
dl 0
loc 27
ccs 8
cts 10
cp 0.8
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 9 3
A register() 0 4 1
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