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.

AbstractApplication::getCommands()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
nc 1
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace Inspector\Application;
4
5
use Symfony\Component\Console\Input\InputInterface;
6
use Inspector\Application\Traits\ConfigurableTrait;
7
use Inspector\Application\Traits\ContainerAwareTrait;
8
use Symfony\Component\Console\Output\OutputInterface;
9
use Symfony\Component\Console\Application as SymfonyApplication;
10
11
/**
12
 *
13
 */
14
abstract class AbstractApplication extends SymfonyApplication
15
{
16
17
    use ConfigurableTrait;
18
    use ContainerAwareTrait;
19
20
    /**
21
     * Returns the list of commands classes that the application exposes
22
     *
23
     * @return array
24
     */
25
    abstract protected function getCommands();
26
27
    /**
28
     * @param InputInterface $input
29
     * @param OutputInterface $output
30
     * @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...
31
     * @throws \Exception
32
     */
33
    public function run(InputInterface $input = null, OutputInterface $output = null)
34
    {
35
        foreach ($this->getCommands() as $commandClass) {
36
            $command = $this->getContainer()->make($commandClass);
37
            $this->add($command);
38
        }
39
40
        return parent::run($input, $output);
41
    }
42
43
44
}
45