| Conditions | 3 |
| Paths | 3 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | protected function doExecute(InputInterface $input, OutputInterface $output): int |
||
| 17 | { |
||
| 18 | $this->enrichRepositories(); |
||
| 19 | |||
| 20 | $rows = []; |
||
| 21 | |||
| 22 | foreach ($this->getRepositoryCollection()->getRepositories() as $identifier => $repository) { |
||
| 23 | $rows[] = [ |
||
| 24 | $identifier, |
||
| 25 | $repository->getName(), |
||
| 26 | $repository->getDescription(), |
||
| 27 | $repository instanceof EditableRepository ? 'x' : '', |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | |||
| 31 | $headlines = ['Identifier', 'Name', 'Description', 'Writable']; |
||
| 32 | |||
| 33 | OutputHelper::renderTable($output, $headlines, $rows); |
||
| 34 | |||
| 35 | return SymfonyCommand::SUCCESS; |
||
| 36 | } |
||
| 38 |