MigrateCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 15
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 10 1
1
<?php
2
3
/**
4
 * @copyright Bluz PHP Team
5
 * @link https://github.com/bluzphp/bluzman
6
 */
7
8
namespace Bluzman\Command\Db;
9
10
/**
11
 * Run migrate command
12
 *
13
 * @package  Bluzman\Command\Db
14
 * @author   Anton Shevchuk
15
 */
16
class MigrateCommand extends AbstractDbCommand
17
{
18
    /**
19
     * Command configuration
20 15
     */
21
    protected function configure()
22
    {
23
        $this
24 15
            // the name of the command (the part after "bin/bluzman")
25
            ->setName('db:migrate')
26 15
            // the short description shown while running "php bin/bluzman list"
27
            ->setDescription('Apply DB migrations')
28
            // the full command description shown when running the command with
29 15
            // the "--help" option
30
            ->setHelp('This command is shorthand to phinx tool')
31 15
        ;
32
    }
33
}
34