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