| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3.2098 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 2 | public function execute(InputInterface $input, OutputInterface $output) |
|
| 31 | { |
||
| 32 | 2 | $io = new SymfonyStyle($input, $output); |
|
| 33 | |||
| 34 | 2 | $io->title('Tactician routing'); |
|
| 35 | |||
| 36 | 2 | $headers = ['Command', 'Handler Service']; |
|
| 37 | |||
| 38 | 2 | foreach ($this->mappings as $busId => $map) { |
|
| 39 | 2 | $io->section('Bus: ' . $busId); |
|
| 40 | |||
| 41 | 2 | if (count($map) > 0) { |
|
| 42 | 2 | $io->table($headers, $this->mappingToRows($map)); |
|
| 43 | } else { |
||
| 44 | 1 | $io->warning("No registered commands for bus $busId"); |
|
| 45 | } |
||
| 46 | } |
||
| 47 | 2 | } |
|
| 48 | |||
| 59 |