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 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 52
ccs 17
cts 17
cp 1
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
A mapWebRoutes() 0 5 1
A map() 0 5 1
A mapApiRoutes() 0 6 1
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Support\Facades\Route;
6
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
7
8
class RouteServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * This namespace is applied to your controller routes.
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 2
    public function boot()
23
    {
24 2
        parent::boot();
25 2
    }
26
27
    /**
28
     * Define the routes for the application.
29
     */
30 2
    public function map()
31
    {
32 2
        $this->mapApiRoutes();
33
34 2
        $this->mapWebRoutes();
35 2
    }
36
37
    /**
38
     * Define the "web" routes for the application.
39
     *
40
     * These routes all receive session state, CSRF protection, etc.
41
     */
42 2
    protected function mapWebRoutes()
43
    {
44 2
        Route::middleware('web')
45 2
             ->namespace($this->namespace)
46 2
             ->group(base_path('routes/web.php'));
47 2
    }
48
49
    /**
50
     * Define the "api" routes for the application.
51
     *
52
     * These routes are typically stateless.
53
     */
54 2
    protected function mapApiRoutes()
55
    {
56 2
        Route::prefix('api')
57 2
             ->middleware('api')
58 2
             ->namespace($this->namespace)
59 2
             ->group(base_path('routes/api.php'));
60 2
    }
61
}
62