Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
17 | public function render(OutputInterface $output, array $results): void |
||
18 | { |
||
19 | $data = array_map(static function (array $result): array { |
||
20 | return [ |
||
21 | 'file' => $result[0], |
||
22 | 'commits' => $result[1], |
||
23 | 'complexity' => $result[2], |
||
24 | 'score' => $result[3], |
||
25 | ]; |
||
26 | }, $results); |
||
27 | |||
28 | $output->write(json_encode($data)); |
||
29 | } |
||
31 |