Completed
Push — master ( c09477...7094c1 )
by Filippo
08:13 queued 05:50
created
src/EoC/CLI/Command/DeleteCommand.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,15 +46,17 @@
 block discarded – undo
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
Please login to merge, or discard this patch.