Passed
Push — master ( d5adc1...45b033 )
by Fabio
06:12
created

TAppHelpAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A performAction() 0 4 1
1
<?php
2
/**
3
 * TAppHelpAction class file
4
 *
5
 * @author Brad Anderson <[email protected]>
6
 * @link https://github.com/pradosoft/prado
7
 * @license https://github.com/pradosoft/prado/blob/master/LICENSE
8
 * @package Prado\Shell\Actions
9
 */
10
11
namespace Prado\Shell\Actions;
12
13
use Prado\Shell\TShellAppAction;
14
15
/**
16
 * The Application specific action for help.
17
 *
18
 * @author Brad Anderson <belisoful[at]icloud[dot]com>
19
 * @package Prado\Shell\Actions
20
 * @since 4.2.0
21
 */
22
class TAppHelpAction extends TShellAppAction
23
{
24
	protected $action = 'help';
25
	protected $parameters = [];
26
	protected $optional = [];
27
	protected $description = 'outputs the CLI Application help';
28
	
29
	/**
30
	 * @param array $args parameters
31
	 * @return bool
32
	 */
33
	public function performAction($args)
34
	{
35
		// by not handling this, the parent caller will render the help automatically.
36
		return false;
37
	}
38
}
39