| Conditions | 2 |
| Paths | 2 |
| Total Lines | 31 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 39 | { |
||
| 40 | $output->writeln('Supported static analysers'); |
||
| 41 | foreach ($this->staticAnalysisResultsParsersRegistry->getAll() as $resultsParser) { |
||
| 42 | $identifier = $resultsParser->getIdentifier(); |
||
| 43 | |||
| 44 | $output->writeln( |
||
| 45 | sprintf( |
||
| 46 | '[<info>%s</info>] %s', |
||
| 47 | $identifier->getCode(), |
||
| 48 | $identifier->getDescription(), |
||
| 49 | ), |
||
| 50 | ); |
||
| 51 | |||
| 52 | $output->writeln( |
||
| 53 | sprintf( |
||
| 54 | ' Create baseline: <info>%s | sarb create --input-format="%s"</info>', |
||
| 55 | $identifier->getToolCommand(), |
||
| 56 | $identifier->getCode(), |
||
| 57 | ), |
||
| 58 | ); |
||
| 59 | |||
| 60 | $output->writeln( |
||
| 61 | sprintf( |
||
| 62 | ' Remove baseline results: <info>%s | sarb remove</info>', |
||
| 63 | $identifier->getToolCommand(), |
||
| 64 | ), |
||
| 65 | ); |
||
| 66 | } |
||
| 67 | |||
| 68 | return 0; |
||
| 69 | } |
||
| 71 |