| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 39 | { |
||
| 40 | $service = ($input->getArgument('service') != '') ? $input->getArgument('service') : null; |
||
| 41 | |||
| 42 | $searchResult = $this->musicInfo->doSearch($input->getArgument('album'), 'album', $service); |
||
| 43 | |||
| 44 | $resultsTable = $this->generateTableForSearchResult( |
||
| 45 | $searchResult, [ |
||
| 46 | 'id' => 'ID', |
||
| 47 | 'name' => 'Name', |
||
| 48 | 'type' => 'Type', |
||
| 49 | 'image' => 'Image', |
||
| 50 | 'dataSource' => 'Source' |
||
| 51 | ], new Table($output) |
||
| 52 | ); |
||
| 53 | |||
| 54 | $resultsTable->render(); |
||
| 55 | |||
| 56 | } |
||
| 57 | } |
||
| 58 |