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

Function fr_pro_emit_result

public/api/pro/_common.php:150–160  ·  view source on GitHub ↗

* @param array $result */

(array $result)

Source from the content-addressed store, hash-verified

148 * @param array<string,mixed> $result
149 */
150 function fr_pro_emit_result(array $result): void
151 {
152 $status = isset($result['status']) ? (int)$result['status'] : 500;
153 $payload = $result['payload'] ?? null;
154 if (!is_array($payload)) {
155 $status = 500;
156 $payload = ['ok' => false, 'error' => 'Invalid Pro API result payload'];
157 }
158
159 fr_pro_json($status, $payload);
160 }
161}
162
163fr_pro_bootstrap();

Callers 15

save.phpFile · 0.85
list.phpFile · 0.85
exportCsv.phpFile · 0.85
list.phpFile · 0.85
delete.phpFile · 0.85
select.phpFile · 0.85
save.phpFile · 0.85
test.phpFile · 0.85

Calls 1

fr_pro_jsonFunction · 0.85

Tested by

no test coverage detected