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 ( 3f65bf...14e015 )
by Jose Luis
03:21
created

MakeTacticianCommandCommand::getDefaultNamespace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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