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.
Test Setup Failed
Push — master ( c5ade0...e039e4 )
by Gabriel
05:51
created

RoutesServiceProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A boot() 0 4 1
A loadRoutes() 0 5 1
A provides() 0 4 1
1
<?php
2
3
namespace Nip\Router;
4
5
use Nip\Container\ServiceProviders\Providers\AbstractSignatureServiceProvider;
6
use Nip\Container\ServiceProviders\Providers\BootableServiceProviderInterface;
7
8
/**
9
 * Class MailServiceProvider
10
 * @package Nip\Mail
11
 */
12
class RoutesServiceProvider extends AbstractSignatureServiceProvider implements BootableServiceProviderInterface
13
{
14
15
    /**
16
     * @inheritdoc
17
     */
18
    public function register()
19
    {
20
    }
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function boot()
26
    {
27
        $this->loadRoutes();
28
    }
29
30
    public function loadRoutes()
31
    {
32
        $folder = app('app')->basePath() . DIRECTORY_SEPARATOR . 'routes';
33
        require $folder . DIRECTORY_SEPARATOR . 'routes.php';
34
    }
35
36
    /**
37
     * @inheritdoc
38
     */
39
    public function provides()
40
    {
41
        return [];
42
    }
43
}
44