Completed
Push — master ( 2df694...c73e94 )
by Alexis
01:45
created

DatabaseCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace App\Command;
4
5
use Symfony\Component\Console\Command\Command;
6
use Symfony\Component\Console\Input\InputInterface;
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
class DatabaseCommand extends Command
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    protected function configure()
15
    {
16
        $this
17
            ->setName('db')
18
            ->setDescription('Update database schema');
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected function execute(InputInterface $input, OutputInterface $output)
25
    {
26
        require __DIR__ . '/../../../app/database/index.php';
27
28
        return 0;
29
    }
30
}
31