Completed
Push — master ( aab589...178fab )
by Alessandro
12s
created

TextSummary::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 4
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Paraunit\Coverage\Processor;
6
7
use Paraunit\Configuration\OutputFile;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
/**
11
 * Class TextSummary
12
 * @package Paraunit\Proxy\Coverage
13
 */
14 View Code Duplication
class TextSummary extends AbstractText
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
15
{
16
    /**
17
     * TextSummary constructor.
18
     * @param OutputInterface $output
19
     * @param bool $showColors
20
     * @param OutputFile|null $targetFile
21
     */
22 6
    public function __construct(OutputInterface $output, bool $showColors, OutputFile $targetFile = null)
23
    {
24 6
        parent::__construct($output, $showColors, true, $targetFile);
25
    }
26
27 21
    public static function getConsoleOptionName(): string
28
    {
29 21
        return 'text-summary';
30
    }
31
}
32