| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 25 | { |
||
| 26 | $name = $input->getArgument('name'); |
||
| 27 | $cfg = $this->getSelimConfig($input); |
||
| 28 | |||
| 29 | if ($cfg->siteExists($name)) { |
||
| 30 | $cfg->removeSite($name); |
||
| 31 | $cfg->write(); |
||
| 32 | echo "removed: '$name'".PHP_EOL; |
||
| 33 | } else { |
||
| 34 | Util::reportError("Site with name '$name' doesn't exists!"); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |