| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function loadFile ($configFile) { |
||
| 35 | |||
| 36 | if (!file_exists(realpath($configFile))) { |
||
| 37 | $this->logger->addError('Config file '.realpath($configFile).' not found.'); |
||
| 38 | return; |
||
| 39 | } |
||
| 40 | |||
| 41 | try { |
||
| 42 | $this->config = array_change_key_case(include($configFile), \CASE_LOWER); |
||
| 43 | $this->logger->addDebug('Config file loaded: '.realpath($configFile)); |
||
| 44 | } catch (\Exception $e) { |
||
| 45 | $this->logger->addError('Failed loading config file ('.realpath($configFile).'): '.$e->getMessage()); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 83 |