Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
55 | 2 | protected function loadConfigFile($key) |
|
56 | { |
||
57 | 2 | if (!file_exists($this->path . "/" . $key . Config::CONFIG_FILE_EXTENSION)) { |
|
58 | 1 | throw new ConfigException( |
|
59 | 'Configuration file does not exist: ' |
||
60 | 1 | . $this->path . "/" . $key . Config::CONFIG_FILE_EXTENSION |
|
61 | ); |
||
62 | } |
||
63 | |||
64 | 1 | $this->configuration[$key] = require $this->path . "/" . $key . Config::CONFIG_FILE_EXTENSION; |
|
65 | 1 | } |
|
66 | |||
82 | } |