Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | protected function execute(InputInterface $input, OutputInterface $output) |
||
23 | { |
||
24 | $updater = new Updater(); |
||
25 | $result = $updater->rollback(); |
||
26 | if (!$result) { |
||
27 | throw new \Exception('Unable to rollback'); |
||
28 | } |
||
29 | $output->writeln(sprintf('Successfully rolled back to %s', $updater->getNewVersion())); |
||
30 | } |
||
31 | } |
||
32 |