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

MakeTacticianCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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