Passed
Push — master ( 146be5...1e12ef )
by ANTHONIUS
06:12
created

Crap4j   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 24
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A getProcessorClass() 0 3 1
A getOutputType() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the doyo/code-coverage project.
5
 *
6
 * (c) Anthonius Munthi <[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
declare(strict_types=1);
13
14
namespace Doyo\Bridge\CodeCoverage\Report;
15
16
class Crap4j extends AbstractReportProcessor
17
{
18
    protected $defaultOptions = [
19
        'target' => 'build/logs/crap4j.xml',
20
    ];
21
22 3
    public function __construct(array $options = [])
23
    {
24 3
        parent::__construct($options);
25
    }
26
27 3
    public function getProcessorClass(): string
28
    {
29 3
        return \SebastianBergmann\CodeCoverage\Report\Crap4j::class;
30
    }
31
32 3
    public function getOutputType(): string
33
    {
34 3
        return static::OUTPUT_FILE;
35
    }
36
37 1
    public function getType(): string
38
    {
39 1
        return 'crap4j';
40
    }
41
}
42