| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | public static function get($key) |
||
| 9 | { |
||
| 10 | if (!self::$config) { |
||
| 11 | |||
| 12 | $config_file = '../application/config/config.' . Environment::get() . '.php'; |
||
| 13 | |||
| 14 | if (!file_exists($config_file)) { |
||
| 15 | return false; |
||
| 16 | } |
||
| 17 | |||
| 18 | self::$config = require $config_file; |
||
| 19 | } |
||
| 20 | |||
| 21 | return self::$config[$key]; |
||
| 22 | } |
||
| 23 | } |
||
| 24 |