Completed
Push — master ( 0ab984...c72dd5 )
by Théo
02:46
created

Application   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLongVersion() 0 8 1
A getHelp() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the humbug/php-scoper package.
7
 *
8
 * Copyright (c) 2017 Théo FIDRY <[email protected]>,
9
 *                    Pádraic Brady <[email protected]>
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 */
14
15
namespace Humbug\PhpScoper\Console;
16
17
use Symfony\Component\Console\Application as SymfonyApplication;
18
19
final class Application extends SymfonyApplication
20
{
21
    /** @private */
22
    const LOGO = <<<'ASCII'
23
24
    ____  __  ______     _____                           
25
   / __ \/ / / / __ \   / ___/_________  ____  ___  _____
26
  / /_/ / /_/ / /_/ /   \__ \/ ___/ __ \/ __ \/ _ \/ ___/
27
 / ____/ __  / ____/   ___/ / /__/ /_/ / /_/ /  __/ /    
28
/_/   /_/ /_/_/       /____/\___/\____/ .___/\___/_/     
29
                                     /_/
30
31
32
ASCII;
33
34
    /**
35
     * @inheritDoc
36
     */
37
    public function getLongVersion()
38
    {
39
        return sprintf(
40
            '<info>%s</info> version <comment>%s</comment>',
41
            $this->getName(),
42
            $this->getVersion()
43
        );
44
    }
45
46
    /**
47
     * @inheritdoc
48
     */
49
    public function getHelp()
50
    {
51
        return self::LOGO.parent::getHelp();
52
    }
53
}
54