MCPcopy Create free account
hub / github.com/error311/FileRise / jsonOut

Method jsonOut

src/FileRise/Http/Controllers/FileController.php:476–480  ·  view source on GitHub ↗
(array $payload, int $status = 200)

Source from the content-addressed store, hash-verified

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')

Callers 15

checkCsrfMethod · 0.95
requireAuthMethod · 0.95
copyFilesMethod · 0.95
deleteFilesMethod · 0.95
moveFilesMethod · 0.95
transferJobStartMethod · 0.95
transferJobStatusMethod · 0.95
transferJobListMethod · 0.95
transferJobCancelMethod · 0.95
renameFileMethod · 0.95
saveFileMethod · 0.95
downloadZipMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected