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   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 53
rs 10
c 0
b 0
f 0
wmc 6
lcom 0
cbo 2

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getArguments() 0 4 1
A getOptions() 0 4 1
A specifyParameters() 0 9 3
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