| Conditions | 3 |
| Paths | 5 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 35 | { |
||
| 36 | $updater = new Updater(); |
||
| 37 | |||
| 38 | try { |
||
| 39 | if (!$updater->rollback()) { |
||
| 40 | $output->write('Failure!'); |
||
| 41 | } else { |
||
| 42 | $output->write('Success!'); |
||
| 43 | } |
||
| 44 | } catch (\Exception $e) { |
||
| 45 | $output->write('Well, something happened! Either an oopsie or something involving hackers.'); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |
||
| 49 |