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.

StatusCommand::execute()   A
last analyzed

Complexity

Conditions 2
Paths 5

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 1 Features 1
Metric Value
c 4
b 1
f 1
dl 0
loc 12
rs 9.4285
cc 2
eloc 8
nc 5
nop 2
1
<?php
2
3
namespace Czogori\DamiBundle\Command;
4
5
use Symfony\Component\Console\Input\InputInterface,
6
    Symfony\Component\Console\Output\OutputInterface;
7
8
use Dami\Cli\Command\StatusCommand as DamiStatusCommand;
9
10
class StatusCommand extends AbstractCommand
11
{
12
    protected function configure()
13
    {
14
        $this
15
            ->setName('dami:status')
16
            ->setDescription('Migrations status.');
17
    }
18
19
    protected function execute(InputInterface $input, OutputInterface $output)
20
    {
21
        try {
22
            $this->prepareMigrationDirectory();
23
24
            $damiStatusCommand = new DamiStatusCommand($this->getName(), $this->getContainer());
25
            $damiStatusCommand->setApplication($this->getApplication());
26
            $damiStatusCommand->execute($input, $output);
27
        } catch (\Exception $e) {
28
            $output->writeln(sprintf("<error>%s</error>", $e->getMessage()));
29
        }
30
    }
31
}
32