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 ( 196d72...93e6c4 )
by Jose Luis
11:20 queued 10:04
created

MakeTacticianHandlerCommand::buildClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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