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.

Application   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 50
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
A getCommands() 0 7 1
A run() 0 6 1
1
<?php
2
3
namespace Inspector;
4
5
use Inspector\Application\IocBinder;
6
use Inspector\Application\ServiceContainer;
7
use Inspector\Application\Commands\InitCommand;
8
use Inspector\Application\Commands\InspectCommand;
9
use Symfony\Component\Console\Input\InputInterface;
10
use Symfony\Component\Console\Output\OutputInterface;
11
use Inspector\Application\AbstractApplication as ConsoleApplication;
12
13
class Application extends ConsoleApplication
14
{
15
16
    const APP_NAME = 'Inspector';
17
18
    const APP_VERSION = '0.0.1';
19
20
    const APP_DEFAULT_CONFIG = 'inspector.yml';
21
22
    /**
23
     * @var IocBinder
24
     */
25
    protected $binder;
26
27
    public function __construct()
28
    {
29
        parent::__construct(static::APP_NAME, static::APP_VERSION);
30
31
        $this->setContainer(new ServiceContainer());
32
33
        $this->binder = new IocBinder($this->getContainer());
34
35
        $this->binder->preBind();
36
    }
37
38
    /**
39
     * Returns the list of commands that the application exposes
40
     *
41
     * @return array
42
     */
43
    protected function getCommands()
44
    {
45
        return [
46
            InitCommand::class,
47
            InspectCommand::class,
48
        ];
49
    }
50
51
    /**
52
     * @param InputInterface $input
53
     * @param OutputInterface $output
54
     * @return int
0 ignored issues
show
Documentation introduced by
Should the return type not be null|integer?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
55
     */
56
    public function run(InputInterface $input = null, OutputInterface $output = null)
57
    {
58
        $this->binder->postBind($this->getConfig());
59
60
        return parent::run($input, $output);
61
    }
62
}
63