| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function __construct($configKey = null) |
||
| 13 | { |
||
| 14 | |||
| 15 | // $this->settings = require dirname(__DIR__, 2) . '/viva-config.php'; |
||
| 16 | |||
| 17 | $paths = [ |
||
| 18 | dirname(__DIR__, 2) . '/viva-config.php', |
||
| 19 | dirname(__DIR__, 5) . '/viva-config.php']; |
||
| 20 | |||
| 21 | $this->settings = $this->loadConfigFile($paths); |
||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | if ($configKey) { |
||
| 26 | $this->config = $this->get($configKey); |
||
| 27 | } else { |
||
| 28 | $this->config = $this->settings; |
||
| 29 | } |
||
| 63 |