From aecb4bd1cb4878fd7efe48aab28168a1fbab6f3c Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 26 Apr 2026 04:34:09 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20PHPCS=20verdict-meta.php=20=E2=80=94=20f?= =?UTF-8?q?ix=20all=20over-tabbed=20array=20keys=20+=20for-loop=20body=20i?= =?UTF-8?q?ndent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Four more 'single' keys had incorrect tab counts (same over-indentation pattern as line 37 fixed in prior commit): - Line 52 (verdict_text registration): 6 tabs → 3 - Line 66 (signal_row text, inside for loop): 8 tabs → 4 - Line 80 (signal_row glyph, inside for loop): 8 tabs → 4 - Line 97 (has_partner_link): 6 tabs → 3 For-loop body lines 173–175: were at 3 tabs (same level as the 'for' statement); PHPCS requires body to be indented one level deeper → 4 tabs. All pre-existing violations in verdict-meta.php are now cleared. --- inc/verdict-meta.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/inc/verdict-meta.php b/inc/verdict-meta.php index 700dead..b3a9ac2 100644 --- a/inc/verdict-meta.php +++ b/inc/verdict-meta.php @@ -49,7 +49,7 @@ function peptide_starter_register_verdict_meta() { 'verdict_text', array( 'type' => 'string', - 'single' => true, + 'single' => true, 'show_in_rest' => true, 'auth_callback' => '__return_true', 'sanitize_callback' => 'sanitize_textarea_field', @@ -63,7 +63,7 @@ function peptide_starter_register_verdict_meta() { 'signal_row_' . $i, array( 'type' => 'string', - 'single' => true, + 'single' => true, 'show_in_rest' => true, 'auth_callback' => '__return_true', 'sanitize_callback' => 'sanitize_text_field', @@ -77,7 +77,7 @@ function peptide_starter_register_verdict_meta() { 'signal_row_' . $i . '_glyph', array( 'type' => 'string', - 'single' => true, + 'single' => true, 'show_in_rest' => true, 'auth_callback' => '__return_true', 'sanitize_callback' => function ( $value ) use ( $allowed_glyphs ) { @@ -94,7 +94,7 @@ function peptide_starter_register_verdict_meta() { 'has_partner_link', array( 'type' => 'boolean', - 'single' => true, + 'single' => true, 'show_in_rest' => true, 'auth_callback' => '__return_true', 'default' => false, @@ -170,9 +170,9 @@ function peptide_starter_render_verdict_meta_box( $post ) { ID, 'signal_row_' . $i, true ); - $row_glyph = get_post_meta( $post->ID, 'signal_row_' . $i . '_glyph', true ); - ?> + $row_text = get_post_meta( $post->ID, 'signal_row_' . $i, true ); + $row_glyph = get_post_meta( $post->ID, 'signal_row_' . $i . '_glyph', true ); + ?>