| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare (strict_types=1); |
||
| 54 | public static function getGlobals($config = "configs") { |
||
|
|
|||
| 55 | if (is_file("globals.json")){ |
||
| 56 | $globalLoc = json_decode(file_get_contents("globals.json"), true); |
||
| 57 | |||
| 58 | if (isset($globalLoc["globals"])){ |
||
| 59 | $file = $globalLoc["globals"].".json"; |
||
| 60 | |||
| 61 | return json_decode(file_get_contents($file), true); |
||
| 62 | } |
||
| 63 | } |
||
| 64 | |||
| 65 | throw new Exception\UndefinedValueException("No configuration data set.", 0); |
||
| 66 | |||
| 67 | } |
||
| 68 | } |
||
| 69 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.