@@ -48,20 +48,21 @@ |
||
48 | 48 | // In case there is a database in use, we select it, because you the selected database can't be deleted. |
49 | 49 | try { |
50 | 50 | $selected = $this->getDatabase(); |
51 | - } |
|
52 | - catch (\RuntimeException $e) { |
|
51 | + } catch (\RuntimeException $e) { |
|
53 | 52 | $selected = NULL; |
54 | 53 | } |
55 | 54 | |
56 | - if ($database === $selected) |
|
57 | - throw new \RuntimeException('You cannot delete the selected database.'); |
|
55 | + if ($database === $selected) { |
|
56 | + throw new \RuntimeException('You cannot delete the selected database.'); |
|
57 | + } |
|
58 | 58 | |
59 | 59 | $question = new ConfirmationQuestion('Are you sure you want delete the database? [Y/n]', FALSE); |
60 | 60 | |
61 | 61 | $helper = $this->getHelper('question'); |
62 | 62 | |
63 | - if ($helper->ask($input, $output, $question) || $input->getOption('no-interaction')) |
|
64 | - $couch->deleteDb($database); |
|
63 | + if ($helper->ask($input, $output, $question) || $input->getOption('no-interaction')) { |
|
64 | + $couch->deleteDb($database); |
|
65 | + } |
|
65 | 66 | } |
66 | 67 | |
67 | 68 | } |
68 | 69 | \ No newline at end of file |