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.

MakeTacticianCommand::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Joselfonseca\LaravelTactician\Commands;
4
5
use Illuminate\Console\Command;
6
7
/**
8
 * Generate Tactician Command and Handler
9
 * @package Joselfonseca\LaravelTactician\Commands
10
 */
11
class MakeTacticianCommand extends Command
12
{
13
    /**
14
     * The name and signature of the console command.
15
     *
16
     * @var string
17
     */
18
    protected $signature = 'make:tactician {name}';
19
20
    /**
21
     * The console command description.
22
     *
23
     * @var string
24
     */
25
    protected $description = 'Generate Tactician Command and Handler';
26
27
    /**
28
     * Execute the console command.
29
     *
30
     * @return mixed
31
     */
32
    public function handle()
33
    {
34
        $this->call('make:tactician:command', $this->getNameArgument());
35
        $this->call('make:tactician:handler', $this->getNameArgument());
36
    }
37
38
    /**
39
     * @return array
40
     */
41
    public function getNameArgument()
42
    {
43
        return ['name' => $this->argument('name')];
44
    }
45
}
46