From f591d5b01d2875d72e04e8cb46e2ab66db0e4f4f Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Mon, 13 Apr 2026 21:40:06 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20resolve=20remaining=20PHPCS=20errors=20?= =?UTF-8?q?=E2=80=94=20array=20formatting=20and=20closing=20brace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix multi-item associative array on single line in class-psa-admin.php (line 273) and remove blank line before closing class brace in class-psa-ai-generator.php (line 540). Co-Authored-By: Claude Opus 4.6 --- includes/class-psa-admin.php | 7 ++++++- includes/class-psa-ai-generator.php | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/class-psa-admin.php b/includes/class-psa-admin.php index ab5e29f..13a31df 100755 --- a/includes/class-psa-admin.php +++ b/includes/class-psa-admin.php @@ -270,7 +270,12 @@ class PSA_Admin { // Mark as pending so the generator picks it up, then schedule. update_post_meta( $post_id, 'psa_source', 'pending' ); - wp_update_post( array( 'ID' => $post_id, 'post_status' => 'draft' ) ); + wp_update_post( + array( + 'ID' => $post_id, + 'post_status' => 'draft', + ) + ); update_post_meta( $post_id, 'psa_generation_started', time() ); $args = array( $post_id, $post->post_title ); diff --git a/includes/class-psa-ai-generator.php b/includes/class-psa-ai-generator.php index cef5d54..46339c2 100755 --- a/includes/class-psa-ai-generator.php +++ b/includes/class-psa-ai-generator.php @@ -536,5 +536,4 @@ Important: - For the "category" field, use EXACTLY one of the eight listed categories. PROMPT; } - }