| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function export($errors, OutputInterface $output): void |
||
| 30 | { |
||
| 31 | $rows = []; |
||
| 32 | foreach ($errors as $error) { |
||
| 33 | $rows[] = [$error->getCode(), $error->getMessage(), $error->getDescription()]; |
||
| 34 | } |
||
| 35 | |||
| 36 | $table = new Table($output); |
||
| 37 | $table->setHeaders(['Code', 'Text', 'Description']) |
||
| 38 | ->setRows($rows); |
||
| 39 | $table->render(); |
||
| 40 | } |
||
| 42 |