Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 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($searchResult, [ |
||
45 | 'id' => 'ID', |
||
46 | 'name' => 'Name', |
||
47 | 'type' => 'Type', |
||
48 | 'image' => 'Image', |
||
49 | 'dataSource' => 'Source' |
||
50 | ], new Table($output)); |
||
51 | |||
52 | $resultsTable->render(); |
||
53 | |||
54 | } |
||
55 | } |