RunHelp::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 14
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 14
loc 14
rs 9.7998
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 RunHelp 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('Run controller.');
20
        $this->setUsage('<controller> [<method> [<arg1> [<arg2> [...]]]]');
21
        $this->setUsage([
22
            '<controller>',
23
            '<controller> <method>',
24
            '<controller> <method> <arg1>',
25
            '<controller> <method> <arg1> <arg2> [...]',
26
        ]);
27
        $this->setDescr(
28
            'Run controller via the CLI.'
29
        );
30
    }
31
}
32