@@ -43,10 +43,11 @@ |
||
| 43 | 43 | protected function execute(InputInterface $input, OutputInterface $output) { |
| 44 | 44 | $couch = $this->getConnection(); |
| 45 | 45 | |
| 46 | - if ($designDoc = $input->getOption('design-doc')) |
|
| 47 | - $couch->compactView($this->getDatabase(), $designDoc); |
|
| 48 | - else |
|
| 49 | - $couch->compactDb($this->getDatabase()); |
|
| 46 | + if ($designDoc = $input->getOption('design-doc')) { |
|
| 47 | + $couch->compactView($this->getDatabase(), $designDoc); |
|
| 48 | + } else { |
|
| 49 | + $couch->compactDb($this->getDatabase()); |
|
| 50 | + } |
|
| 50 | 51 | } |
| 51 | 52 | |
| 52 | 53 | } |
| 53 | 54 | \ No newline at end of file |