Application::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 2
crap 2
1
<?php
2
3
/*
4
 * This file is part of the Geotools library.
5
 *
6
 * (c) Antoine Corcy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace League\Geotools\CLI;
13
14
use League\Geotools\CLI\Output\ConsoleOutput;
15
use Symfony\Component\Console\Input\InputInterface;
16
use Symfony\Component\Console\Output\OutputInterface;
17
18
/**
19
 * @author Antoine Corcy <[email protected]>
20
 */
21
class Application extends \Symfony\Component\Console\Application
22
{
23
    /**
24
     * @var string
25
     */
26
    private $logo = '
27
      ________              __                .__
28
     /  _____/  ____  _____/  |_  ____   ____ |  |   ______
29
    /   \  ____/ __ \/  _ \   __\/  _ \ /  _ \|  |  /  ___/
30
    \    \_\  \  ___(  <_> )  | (  <_> |  <_> )  |__\___ \
31
     \______  /\___  >____/|__|  \____/ \____/|____/____  >
32
            \/     \/                                   \/
33
34
';
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function getHelp()
40
    {
41
        return $this->logo . parent::getHelp();
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function run(InputInterface $input = null, OutputInterface $output = null)
48
    {
49
        parent::run($input, new ConsoleOutput);
50
    }
51
}
52