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