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

MakeTacticianHandlerCommand::getPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Joselfonseca\LaravelTactician\Commands;
4
5
use Illuminate\Console\GeneratorCommand;
6
7
class MakeTacticianHandlerCommand extends GeneratorCommand
8
{
9
    /**
10
     * The console command name.
11
     *
12
     * @var string
13
     */
14
    protected $name = 'make:tactician:handler';
15
16
    /**
17
     * The console command description.
18
     *
19
     * @var string
20
     */
21
    protected $description = 'Create a new Tactician Command Handler';
22
23
    /**
24
     * Get the stub file for the generator.
25
     *
26
     * @return string
27
     */
28
    protected function getStub()
29
    {
30
        return __DIR__.'/../../stubs/handler.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\\Handlers";
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.'Handler');
53
    }
54
}
55