Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
40 | public function process(ProcessorInterface $processor, ConsoleIO $consoleIO) |
||
41 | { |
||
42 | $reportProcessor = $this->processor; |
||
43 | $coverage = $processor->getCodeCoverage(); |
||
44 | $target = $this->target; |
||
45 | |||
46 | $output = $reportProcessor->process($coverage); |
||
47 | if ('console' === $target) { |
||
48 | $consoleIO->coverageInfo($output); |
||
49 | } else { |
||
50 | file_put_contents($target, $output); |
||
51 | } |
||
54 |