Passed
Branch 4.9 (cb955a)
by Mikhail
01:30
created

Help   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 28
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 3 1
A __construct() 0 9 1
1
<?php
2
3
namespace controllers;
4
5
use generators\AddonXml\AddonXmlGenerator;
6
use generators\Language\LanguageGenerator;
7
use generators\Readme\ReadmeGenerator;
8
use generators\FileGenerator;
9
use terminal\Terminal;
10
use filesystem\Filesystem;
11
use mediators\GeneratorMediator;
12
use \Config;
13
14
class Help extends AbstractController
15
{
16
    private $config;
17
    private $terminal;
18
    private $filesystem;
19
20
    use HelpTrait;
21
22
    function __construct(
23
        Config              $config,
24
        Terminal            $terminal,
25
        Filesystem          $filesystem
26
    )
27
    {
28
        $this->config               = $config;
29
        $this->terminal             = $terminal;
30
        $this->filesystem           = $filesystem;
31
    }
32
33
    /**
34
     * help:
35
     * Use for more information:
36
     * php ccg.php <generator> help
37
     * allowed generators: addon, addon-xml
38
     */
39
    public function index()
40
    {
41
        $this->help();
42
    }
43
}
44