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.

RouteServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 1
cbo 2
dl 0
loc 39
rs 10
ccs 7
cts 7
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A map() 0 6 1
A boot() 0 6 1
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
6
use Illuminate\Routing\Router;
7
8
class RouteServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * This namespace is applied to the controller routes in your routes file.
12
     *
13
     * In addition, it is set as the URL generator's root namespace.
14
     *
15
     * @var string
16
     */
17
    protected $namespace = 'App\Http\Controllers';
18
19
    /**
20
     * Define your route model bindings, pattern filters, etc.
21
     *
22
     * @param  \Illuminate\Routing\Router $router
23
     *
24
     * @return void
25
     */
26 90
    public function boot(Router $router)
27
    {
28
        //
29
30 90
        parent::boot($router);
31 90
    }
32
33
    /**
34
     * Define the routes for the application.
35
     *
36
     * @param  \Illuminate\Routing\Router $router
37
     *
38
     * @return void
39
     */
40
    public function map(Router $router)
41
    {
42 90
        $router->group(['namespace' => $this->namespace], function ($router) {
43 90
            require app_path('Http/routes.php');
44 90
        });
45 90
    }
46
}
47