| Conditions | 4 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | public function execute() |
||
| 13 | { |
||
| 14 | $optionName = 'replaceHtaccessFile'; |
||
| 15 | if ( |
||
| 16 | $this->input->getOption('useDefaultConfigParams') !== null |
||
| 17 | || $this->input->getOption($optionName) === null |
||
| 18 | ) { |
||
| 19 | return; |
||
| 20 | } |
||
| 21 | |||
| 22 | $this->getCommand()->getApplication()->setAutoExit(false); |
||
| 23 | |||
| 24 | $flag = $this->getOptionalBooleanOption($optionName, 'Write BaseURL to .htaccess file?', false); |
||
| 25 | |||
| 26 | if ($flag) { |
||
| 27 | $this->replaceHtaccessFile(); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 60 |