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.
Completed
Push — master ( 7270bd...00b768 )
by Shea
08:40 queued 04:07
created

GeneratorServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 4 1
A registerMakeModuleCommand() 0 8 1
1
<?php
2
namespace Caffeinated\Modules\Providers;
3
4
use Illuminate\Support\ServiceProvider;
5
6
class GeneratorServiceProvider extends ServiceProvider
7
{
8
    /**
9
     * Bootstrap the application services.
10
     *
11
     * @return void
12
     */
13
    public function boot()
14
    {
15
        //
16
    }
17
18
    /**
19
     * Register the application services.
20
     *
21
     * @return void
22
     */
23
    public function register()
24
    {
25
        $this->registerMakeModuleCommand();
26
    }
27
28
    /**
29
     * Register the module:make command.
30
     *
31
     * @return void
32
     */
33
    private function registerMakeModuleCommand()
34
    {
35
        $this->app->singleton('command.make.module', function($app) {
36
            return $app['Caffeinated\Modules\Console\Generators\MakeModuleCommand'];
37
        });
38
39
        $this->commands('command.make.module');
40
    }
41
}
42