| Conditions | 5 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public static function setConfig($config = null, bool $force = false) |
||
| 22 | { |
||
| 23 | if ( ! $force && ! empty(self::$config)) { |
||
| 24 | return; |
||
| 25 | } |
||
| 26 | |||
| 27 | if (is_array($config)) { |
||
| 28 | self::$config = $config; |
||
| 29 | } else if (is_string($config)) { |
||
| 30 | self::$config = require $config ?? self::DEFAULT_CONFIG_PATH; |
||
| 31 | } |
||
| 61 |