(array $payload, int $status = 200)
| 474 | restore_error_handler(); |
| 475 | } |
| 476 | private function jsonOut(array $payload, int $status = 200): void |
| 477 | { |
| 478 | http_response_code($status); |
| 479 | echo json_encode($payload, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); |
| 480 | } |
| 481 | private function checkCsrf(): bool |
| 482 | { |
| 483 | $headersArr = function_exists('getallheaders') |
no outgoing calls
no test coverage detected