Code Duplication    Length = 18-25 lines in 2 locations

src/php/Apix/Console/Main.php 1 location

@@ 200-224 (lines=25) @@
197
        exit(0);
198
    }
199
200
    public function help()
201
    {
202
        $args = $this->getArgs();
203
        $args[0] = 'php ' . $args[0];
204
205
        $this->outRegex(
206
<<<HELP
207
<bold>Usage:</bold> <brown>{$args[0]}</brown> [OPTIONS]\r\n
208
<bold>Options:</bold>\r
209
   --readme <brown>|</brown> -r\t<brown>Display the README file</brown>
210
   --extractdist <brown>|</brown> -e\t<brown>Extract the latest distribution data</brown>
211
   --check <brown>|</brown> -c\t\t<brown>Check for updates</brown>
212
   --selfupdate\t\t<brown>Upgrade Apix to the latest version available</brown>
213
   --version\t\t<brown>Display the version information and exit</brown>
214
   --info <brown>|</brown> -i\t\t<brown>PHP information and configuration</brown>
215
   --license\t\t<brown>Display the software license</brown>
216
   --syscheck <brown>|</brown> -s\t<brown>Run a system check</brown>
217
   --tests <brown>|</brown> -t\t\t<brown>Run some unit & functional tests</brown>
218
   --no-colors\t\t<brown>Don't use colors in the outputs</brown>
219
   --verbose <brown>|</brown> -v\t<brown>Add some verbosity to the outputs.\n\t\t\tMultiple -v options increase the verbosity.</brown>
220
   --help <brown>|</brown> -h\t\t<brown>Display this help</brown>\n\n
221
HELP
222
        );
223
        exit;
224
    }
225
226
    public function outputError(\Exception $e)
227
    {

src/php/Apix/Console/SystemCheck.php 1 location

@@ 26-43 (lines=18) @@
23
class SystemCheck extends Console
24
{
25
26
    public function help()
27
    {
28
        $args = $this->getArgs();
29
        $args[0] = 'php ' . $args[0];
30
31
        $this->outRegex(
32
<<<HELP
33
<bold>Usage:</bold> <brown>{$args[0]}</brown> [OPTIONS]\r\n
34
<bold>Options:</bold>\r
35
   --all\t<brown>Run all the checks</brown>\r
36
   --required\t<brown>Run only the required checks</brown>\r
37
   --optionals\t<brown>Run only the optionals checks</brown>\r
38
   --no-colors\t<brown>Don't use colors in the outputs</brown>\r
39
   --verbose <brown>\tAdd some verbosity to the outputs</brown>\r
40
   --help <brown>|</brown> -h\t<brown>Display this help</brown>\n\n
41
HELP
42
        );
43
    }
44
45
    public function run()
46
    {