MigrateHelp::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 13
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 13
loc 13
rs 9.8333
c 0
b 0
f 0
1
<?php
2
/**
3
 * Part of Cli for CodeIgniter
4
 *
5
 * @author     Kenji Suzuki <https://github.com/kenjis>
6
 * @license    MIT License
7
 * @copyright  2015 Kenji Suzuki
8
 * @link       https://github.com/kenjis/codeigniter-cli
9
 */
10
11
namespace Kenjis\CodeIgniter_Cli\Command;
12
13
use Aura\Cli\Help;
14
15 View Code Duplication
class MigrateHelp extends Help
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
16
{
17
    public function init()
18
    {
19
        $this->setSummary('Runs the migrations.');
20
        $this->setUsage([
21
            '            Migrate up to the current version.',
22
            '<version>   Migrate up to the version.',
23
            'status      List all migration files and versions.',
24
            'version     Show migration versions.'
25
        ]);
26
        $this->setDescr(
27
            '<<bold>>migrate<<reset>> command runs the migrations and shows its status.' . PHP_EOL
28
        );
29
    }
30
}
31