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

Method readJson

src/FileRise/Http/Controllers/UserController.php:117–122  ·  view source on GitHub ↗

Read JSON body (empty array if not valid). */

()

Source from the content-addressed store, hash-verified

115
116 /** Read JSON body (empty array if not valid). */
117 private static function readJson(): array
118 {
119 $raw = file_get_contents('php://input');
120 $data = json_decode($raw, true);
121 return is_array($data) ? $data : [];
122 }
123
124 /** Convenience: set JSON content type + no-store. */
125 private static function jsonHeaders(): void

Callers 8

addUserMethod · 0.95
removeUserMethod · 0.95
updateUserPermissionsMethod · 0.95
changePasswordMethod · 0.95
updateUserPanelMethod · 0.95
recoverTOTPMethod · 0.95
verifyTOTPMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected