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

Test Setup Failed
Pull Request — development (#68)
by José
06:06
created

RouteServiceProvider::mapApiRoutes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace GiveBlood\Units\Core\Providers;
4
5
use Illuminate\Support\Facades\Route;
6
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
7
8
use GiveBlood\Units\Authentication\Routes\Api;
9
10
class RouteServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * This namespace is applied to your controller routes.
14
     *
15
     * In addition, it is set as the URL generator's root namespace.
16
     *
17
     * @var string
18
     */
19
    protected $namespace = 'GiveBlood\Units\Authentication\Http\Controllers';
20
21
    /**
22
     * Define your route model bindings, pattern filters, etc.
23
     *
24
     * @return void
25
     */
26
    public function boot()
27
    {
28
        //
29
30
        parent::boot();
31
    }
32
33
    /**
34
     * Define the routes for the application.
35
     *
36
     * @return void
37
     */
38
    public function map()
39
    {
40
        $this->mapApiRoutes();
41
    }
42
43
    /**
44
     * Define the "api" routes for the application.
45
     *
46
     * These routes are typically stateless.
47
     *
48
     * @return void
49
     */
50
    protected function mapApiRoutes()
51
    {
52
        (new Api(
53
            [
54
            'middleware' => 'api',
55
            'namespace' => $this->namespace,
56
            //'prefix' => 'api'
57
             ]
58
        ))->register();
59
    }
60
}
61