From d535557e5a24876e89147481e7fa8ad32d23bbd5 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Wed, 15 Jul 2026 14:46:04 -0400 Subject: [PATCH] Strip trailing whitespace failing phpcs (unblocks CI/deploy) CI has been red since the CSRF-drift changes landed a trailing space on the 'success' => false line in these two endpoints, which blocks the deploy job (and therefore beta/prod). No logic change. Co-Authored-By: Claude Opus 4.8 --- api/add_comment.php | 2 +- api/update_ticket.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/add_comment.php b/api/add_comment.php index 595b65d..33362a7 100644 --- a/api/add_comment.php +++ b/api/add_comment.php @@ -53,7 +53,7 @@ try { http_response_code(403); header('Content-Type: application/json'); echo json_encode([ - 'success' => false, + 'success' => false, 'error' => 'Invalid CSRF token', 'csrf_token' => CsrfMiddleware::getToken() ]); diff --git a/api/update_ticket.php b/api/update_ticket.php index 4863921..de210be 100644 --- a/api/update_ticket.php +++ b/api/update_ticket.php @@ -49,7 +49,7 @@ try { http_response_code(403); header('Content-Type: application/json'); echo json_encode([ - 'success' => false, + 'success' => false, 'error' => 'Invalid CSRF token', 'csrf_token' => CsrfMiddleware::getToken() ]);