| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | protected function initialize(InputInterface $input, OutputInterface $output) |
||
| 24 | { |
||
| 25 | parent::initialize($input, $output); |
||
| 26 | $configPath = $input->getOption('config'); |
||
| 27 | $this->config = $configPath ? Configuration::fromFile($configPath) : Configuration::defaults('php-semver-checker-git'); |
||
| 28 | $inputMerger = new InputMerger(); |
||
| 29 | $inputMerger->merge($input, $this->config); |
||
| 30 | |||
| 31 | // Set overrides |
||
| 32 | LevelMapping::setOverrides($this->config->getLevelMapping()); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |