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