review code pattern consistency

This commit is contained in:
Thanakorn S
2026-05-20 13:07:57 +07:00
parent 7396db6ffc
commit 91f8bb854f
20 changed files with 93 additions and 58 deletions
@@ -10,7 +10,8 @@ if ($id) {
$row = $qm->getById($id);
if (!$row) {
http_response_code(404);
exit(json_encode(['success' => 0, 'message' => 'Not found.']));
$answer['message'] = 'Not found.';
exit(json_encode($answer));
}
$answer['output'] = $row;
} else {