| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 44 | 1 | public function execute(InputInterface $input, OutputInterface $output) |
|
| 45 | { |
||
| 46 | 1 | $setting = $this->input->getArgument('setting'); |
|
| 47 | |||
| 48 | 1 | if (!$this->getConfig()->has($setting)) { |
|
| 49 | 1 | $this->writeComment(sprintf('No changes made; there is no setting defined with the name `%s`', $setting)); |
|
| 50 | 1 | } else { |
|
| 51 | 1 | $this->getConfigSource()->removeConfigSetting($setting); |
|
| 52 | |||
| 53 | 1 | $this->writeOk(sprintf('Setting with name <info>`%s`</info> has been removed from the configuration!', $setting)); |
|
| 54 | } |
||
| 55 | 1 | } |
|
| 56 | } |
||
| 57 |