Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 73.32% |
Changes | 0 |
1 | <?php |
||
14 | class midcom_compat_environment |
||
15 | { |
||
16 | private static $_headers = []; |
||
17 | |||
18 | 17 | public static function header(string $string, bool $replace = true, int $http_response_code = 0) |
|
27 | 17 | ]; |
|
28 | } |
||
29 | } |
||
30 | |||
31 | public static function stop_request(string $message) |
||
35 | } |
||
36 | } |
||
37 | |||
38 | 664 | public static function flush_registered_headers() : array |
|
45 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.