| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public static function getConfigField($key) |
||
| 43 | { |
||
| 44 | if (empty(static::$configArray)) { |
||
| 45 | Config::init(); |
||
| 46 | } |
||
| 47 | |||
| 48 | $configField = static::$configArray[$key]; |
||
| 49 | |||
| 50 | if ($configField === null) { |
||
| 51 | throw new Exception(ErrorMessages::getConfigFieldNotFoundMessage($key)); |
||
| 52 | } |
||
| 53 | |||
| 54 | return $configField; |
||
| 55 | } |
||
| 56 | |||
| 79 |