Code Duplication    Length = 18-18 lines in 2 locations

src/Paraunit/Coverage/Processor/Text.php 1 location

@@ 14-31 (lines=18) @@
11
 * Class Text
12
 * @package Paraunit\Proxy\Coverage
13
 */
14
class Text extends AbstractText
15
{
16
    /**
17
     * Text constructor.
18
     * @param OutputInterface $output
19
     * @param bool $showColors
20
     * @param OutputFile|null $targetFile
21
     */
22
    public function __construct(OutputInterface $output, bool $showColors, OutputFile $targetFile = null)
23
    {
24
        parent::__construct($output, $showColors, false, $targetFile);
25
    }
26
27
    public static function getConsoleOptionName(): string
28
    {
29
        return 'text';
30
    }
31
}
32

src/Paraunit/Coverage/Processor/TextSummary.php 1 location

@@ 14-31 (lines=18) @@
11
 * Class TextSummary
12
 * @package Paraunit\Proxy\Coverage
13
 */
14
class TextSummary extends AbstractText
15
{
16
    /**
17
     * TextSummary constructor.
18
     * @param OutputInterface $output
19
     * @param bool $showColors
20
     * @param OutputFile|null $targetFile
21
     */
22
    public function __construct(OutputInterface $output, bool $showColors, OutputFile $targetFile = null)
23
    {
24
        parent::__construct($output, $showColors, true, $targetFile);
25
    }
26
27
    public static function getConsoleOptionName(): string
28
    {
29
        return 'text-summary';
30
    }
31
}
32