Application   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 32
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getHelp() 0 4 1
A getDefaultHelperSet() 0 8 1
1
<?php
2
3
namespace Storeman\Cli;
4
5
use Storeman\Cli\Helper\DisplayIndexComparisonHelper;
6
use Storeman\Cli\Helper\DisplayIndexHelper;
7
8
class Application extends \Symfony\Component\Console\Application
9
{
10
    public const LOGO =  <<<TXT
11
  ____  _                                       
12
 / ___|| |_ ___  _ __ ___ _ __ ___   __ _ _ __  
13
 \___ \| __/ _ \| '__/ _ \ '_ ` _ \ / _` | '_ \ 
14
  ___) | || (_) | | |  __/ | | | | | (_| | | | |
15
 |____/ \__\___/|_|  \___|_| |_| |_|\__,_|_| |_|
16
17
18
TXT;
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getHelp()
24
    {
25
        return static::LOGO . parent::getHelp();
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    protected function getDefaultHelperSet()
32
    {
33
        $helperSet = parent::getDefaultHelperSet();
34
        $helperSet->set(new DisplayIndexComparisonHelper());
35
        $helperSet->set(new DisplayIndexHelper());
36
37
        return $helperSet;
38
    }
39
}
40