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.

Command::getOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Inspector\Application;
4
5
use Inspector\Application\Traits\ContainerAwareTrait;
6
use Symfony\Component\Console\Command\Command as SymfonyCommand;
7
8
/**
9
 * Base class for Console Command
10
 */
11
class Command extends SymfonyCommand
12
{
13
14
    use ContainerAwareTrait;
15
16
    protected $name;
17
18
    protected $description;
19
20
    public function __construct()
21
    {
22
        parent::__construct($this->name);
23
        $this->setDescription($this->description);
24
25
        $this->specifyParameters();
26
    }
27
28
    /**
29
     * Get the console command arguments.
30
     *
31
     * @return array
32
     */
33
    protected function getArguments()
34
    {
35
        return [];
36
    }
37
38
    /**
39
     * Get the console command options.
40
     *
41
     * @return array
42
     */
43
    protected function getOptions()
44
    {
45
        return [];
46
    }
47
48
    /**
49
     * Specify the arguments and options on the command.
50
     *
51
     * @return void
52
     */
53
    protected function specifyParameters()
54
    {
55
        foreach ($this->getArguments() as $arguments) {
56
            call_user_func_array([$this, 'addArgument'], $arguments);
57
        }
58
        foreach ($this->getOptions() as $options) {
59
            call_user_func_array([$this, 'addOption'], $options);
60
        }
61
    }
62
63
}
64