| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | protected function execute(Input $input, Output $output) |
||
| 23 | { |
||
| 24 | $revisionId = trim($input->getArgument('revisionId')); |
||
|
|
|||
| 25 | |||
| 26 | $result = (new RevisionAPI())->readAPI((int)$revisionId); |
||
| 27 | if ($result['success'] === true) { |
||
| 28 | $output->writeln('<comment>' . print_r($result['data']['dataSource']) . '</comment>'); |
||
| 29 | } else { |
||
| 30 | $output->writeln('<error>' . $result['message'] . '</error>'); |
||
| 31 | } |
||
| 34 |