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
Pull Request — master (#2)
by Tim
02:47
created

MakeTacticianCommandCommand   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getStub() 0 4 1
A getDefaultNamespace() 0 4 1
A getPath() 0 4 1
1
<?php
2
3
namespace Joselfonseca\LaravelTactician\Commands;
4
5
use Illuminate\Console\GeneratorCommand;
6
7
class MakeTacticianCommandCommand extends GeneratorCommand
8
{
9
    /**
10
     * The console command name.
11
     *
12
     * @var string
13
     */
14
    protected $name = 'make:tactician:command';
15
16
    /**
17
     * The console command description.
18
     *
19
     * @var string
20
     */
21
    protected $description = 'Create a new Tactician Command';
22
23
    /**
24
     * Get the stub file for the generator.
25
     *
26
     * @return string
27
     */
28
    protected function getStub()
29
    {
30
        return __DIR__.'/../../stubs/command.stub';
31
    }
32
33
    /**
34
     * Get the default namespace for the class.
35
     *
36
     * @param  string $rootNamespace
37
     * @return string
38
     */
39
    protected function getDefaultNamespace($rootNamespace)
40
    {
41
        return "$rootNamespace\\CommandBus\\Commands";
42
    }
43
44
    /**
45
     * Get the destination class path.
46
     *
47
     * @param  string $name
48
     * @return string
49
     */
50
    protected function getPath($name)
51
    {
52
        return parent::getPath($name.'Command');
53
    }
54
}
55