Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — development ( 6a1e03...a8e200 )
by José
09:26
created

RouteServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 3
c 3
b 0
f 0
lcom 1
cbo 2
dl 0
loc 65
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A map() 0 6 1
A mapApiRoutes() 0 11 1
1
<?php
2
3
namespace DoeSangue\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 = 'DoeSangue\Http\Controllers';
18
19
    /**
20
     * Define your route model bindings, pattern filters, etc.
21
     */
22
    public function boot()
23
    {
24
        parent::boot();
25
    }
26
27
    /**
28
     * Define the routes for the application.
29
     */
30
    public function map()
31
    {
32
        $this->mapApiRoutes();
33
34
        //    $this->mapWebRoutes();
0 ignored issues
show
Unused Code Comprehensibility introduced by
72% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
35
    }
36
37
    /**
38
     * Define the "web" routes for the application.
39
     *
40
     * These routes all receive session state, CSRF protection, etc.
41
     */
42
     /*
0 ignored issues
show
Unused Code Comprehensibility introduced by
56% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
43
    protected function mapWebRoutes()
44
    {
45
        Route::group(
46
            [
47
            'middleware' => 'web',
48
            'namespace' => $this->namespace,
49
            ], function ($router) {
50
                include base_path('routes/web.php');
51
            }
52
        );
53
    }
54
    */
55
56
    /**
57
     * Define the "api" routes for the application.
58
     *
59
     * These routes are typically stateless.
60
     */
61
    protected function mapApiRoutes()
62
    {
63
        Route::group(
64
            [
65
            'middleware' => 'api',
66
            'namespace' => $this->namespace,
67
            ], function ($router) {
68
                include base_path('routes/api.php');
69
            }
70
        );
71
    }
72
}
73