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

RouteServiceProvider::mapApiRoutes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 8
cts 8
cp 1
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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 7
    public function boot()
23
    {
24 7
        parent::boot();
25 7
    }
26
27
    /**
28
     * Define the routes for the application.
29
     */
30 7
    public function map()
31
    {
32 7
        $this->mapApiRoutes();
33
34
        //    $this->mapWebRoutes();
35 7
    }
36
37
    /**
38
     * Define the "web" routes for the application.
39
     *
40
     * These routes all receive session state, CSRF protection, etc.
41
     */
42
      /*
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 7
    protected function mapApiRoutes()
62
    {
63 7
        Route::group(
64
            [
65 7
            'middleware' => 'api',
66 7
            'namespace' => $this->namespace,
67 7
            ], function($router) {
68 7
                include base_path('routes/api.php');
69 7
            }
70
        );
71 7
    }
72
}
73