| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 2 | public function process(ProcessorInterface $processor, ConsoleIO $consoleIO) |
|
| 31 | { |
||
| 32 | 2 | $reportProcessor = $this->processor; |
|
| 33 | 2 | $coverage = $processor->getCodeCoverage(); |
|
| 34 | 2 | $target = $this->target; |
|
| 35 | |||
| 36 | 2 | $output = $reportProcessor->process($coverage); |
|
| 37 | 2 | if('console' === $target){ |
|
| 38 | 1 | $consoleIO->coverageInfo($output); |
|
| 39 | }else{ |
||
| 40 | 1 | file_put_contents($target, $output); |
|
| 41 | } |
||
| 44 |