Passed
Push — master ( 28f242...472b4c )
by Gabriel
04:44
created

MigrateCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace ByTIC\Migrations\Console;
4
5
use ByTIC\Console\Command;
6
use Exception;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
/**
11
 * Class MigrateCommand
12
 * @package ByTIC\Migrations\Console
13
 */
14
class MigrateCommand extends Command
15
{
16 1
    protected function configure()
17
    {
18 1
        parent::configure();
19 1
        $this->setName('migrations:migrate');
20 1
    }
21
22
    /**
23
     * @inheritDoc
24
     * @noinspection PhpMissingParentCallCommonInspection
25
     * @throws Exception
26
     */
27 1
    protected function execute(InputInterface $input, OutputInterface $output)
28
    {
29 1
        $migrator = migrator();
30 1
        return $migrator->migrate($input->getArguments(), $output);
31
    }
32
}
33