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

MakeProviderCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 38
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getStub() 0 4 1
A getDefaultNamespace() 0 4 1
1
<?php
2
3
namespace GiveBlood\Console\Commands;
4
5
use Illuminate\Foundation\Console\ProviderMakeCommand;
6
7
class MakeProviderCommand extends ProviderMakeCommand
8
{
9
10
    /**
11
     * The console command description.
12
     *
13
     * @var string
14
     */
15
    protected $description = 'Create a new custom service provider class';
16
17
    /**
18
     * The type of class being generated.
19
     *
20
     * @var string
21
     */
22
    protected $type = 'Provider';
23
24
    /**
25
     * Get the stub file for the generator.
26
     *
27
     * @return string
28
     */
29
    protected function getStub()
30
    {
31
        return __DIR__.'/stubs/provider.stub';
32
    }
33
34
    /**
35
     * Get the default namespace for the class.
36
     *
37
     * @param  string  $rootNamespace
38
     * @return string
39
     */
40
    protected function getDefaultNamespace($rootNamespace)
41
    {
42
        return $rootNamespace.'\Modules';
43
    }
44
}
45