help::after_connstruct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * © 2018 - Phoponent
5
 * Author: Nicolas Choquet
6
 * Email: [email protected]
7
 * LICENSE GPL ( GNU General Public License )
8
 */
9
10
namespace phoponent\framework\command;
11
12
use phoponent\framework\traits\command;
13
14
class help {
15
	use command;
16
17
	private $commands = [];
18
19
	protected function after_connstruct() {
20
		self::$LOG_FILE = 'phoponent/logs/commands/help.log';
21
	}
22
23
	protected function before_run() {
24
		$this->commands[] = '-h';
25
		$this->commands[] = '--help';
26
		$this->commands[] = 'make:component tag=<valeur> ?type=<core/custom>';
27
		$this->commands[] = '';
28
		$this->commands[] = '';
29
		$this->commands[] = 'LEGENDE : ';
30
		$this->commands[] = '? = optionnel';
31
	}
32
33
	protected function run() {
34
	    echo '/**********************************************/'."\n";
35
	    echo '/* © '.date('Y').' - Phoponent *************************/'."\n";
36
	    echo '/* Author: Nicolas Choquet ********************/'."\n";
37
	    echo '/* LICENSE GPL ( GNU General Public License ) */'."\n";
38
	    echo '/**********************************************/'."\n\n";
39
	    echo "/***********************************************************************/\n";
40
	    echo "/* PPPPPP  hh                                                   tt     */\n";
41
        echo "/* PP   PP hh       oooo  pp pp    oooo  nn nnn    eee  nn nnn  tt     */\n";
42
        echo "/* PPPPPP  hhhhhh  oo  oo ppp  pp oo  oo nnn  nn ee   e nnn  nn tttt   */\n";
43
        echo "/* PP      hh   hh oo  oo pppppp  oo  oo nn   nn eeeee  nn   nn tt     */\n";
44
        echo "/* PP      hh   hh  oooo  pp       oooo  nn   nn  eeeee nn   nn  tttt  */\n";
45
        echo "/*                        pp                                           */\n";
46
        echo "/***********************************************************************/\n\n";
47
		foreach ($this->commands as $command) {
48
			$this->log($command);
49
		}
50
	}
51
}