Passed
Pull Request — master (#1)
by ANTHONIUS
03:02
created

XML   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 26
ccs 9
cts 9
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 getOutputType() 0 3 1
A createProcessor() 0 4 1
A getProcessorClass() 0 3 1
1
<?php
2
3
namespace Doyo\Bridge\CodeCoverage\Report;
4
5
use SebastianBergmann\CodeCoverage\Report\Xml\Facade;
6
7
class XML extends AbstractReportProcessor
8
{
9
    protected $defaultOptions = [
10
        'target' => 'build/xml'
11
    ];
12
13 2
    protected function createProcessor(array $options)
14
    {
15 2
        $options['version'] = 'DoyoLabs-CustomCoverage';
16 2
        return parent::createProcessor($options); // TODO: Change the autogenerated stub
17
    }
18
19
20 2
    public function getProcessorClass(): string
21
    {
22 2
        return Facade::class;
23
    }
24
25 2
    public function getOutputType(): string
26
    {
27 2
        return static::OUTPUT_DIR;
28
    }
29
30 1
    public function getType(): string
31
    {
32 1
        return 'xml';
33
    }
34
}
35