fix: PHPCS violations in brand components (Yoda conditions, array formatting, PHP tag)
This commit is contained in:
@@ -42,4 +42,5 @@ get_header();
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<?php get_footer();
|
<?php
|
||||||
|
get_footer();
|
||||||
|
|||||||
@@ -41,4 +41,5 @@ get_header();
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<?php get_footer();
|
<?php
|
||||||
|
get_footer();
|
||||||
|
|||||||
@@ -17,11 +17,26 @@ $show_label = isset( $args['show_label'] ) ? (bool) $args['show_label'] : tru
|
|||||||
|
|
||||||
// State configuration.
|
// State configuration.
|
||||||
$states = array(
|
$states = array(
|
||||||
'established' => array( 'glyph' => '✓', 'label' => 'Established' ),
|
'established' => array(
|
||||||
'promising' => array( 'glyph' => '◐', 'label' => 'Promising' ),
|
'glyph' => '✓',
|
||||||
'investigational' => array( 'glyph' => '?', 'label' => 'Investigational' ),
|
'label' => 'Established',
|
||||||
'insufficient' => array( 'glyph' => '⊘', 'label' => 'Insufficient Evidence' ),
|
),
|
||||||
'cautionary' => array( 'glyph' => '⚠', 'label' => 'Cautionary' ),
|
'promising' => array(
|
||||||
|
'glyph' => '◐',
|
||||||
|
'label' => 'Promising',
|
||||||
|
),
|
||||||
|
'investigational' => array(
|
||||||
|
'glyph' => '?',
|
||||||
|
'label' => 'Investigational',
|
||||||
|
),
|
||||||
|
'insufficient' => array(
|
||||||
|
'glyph' => '⊘',
|
||||||
|
'label' => 'Insufficient Evidence',
|
||||||
|
),
|
||||||
|
'cautionary' => array(
|
||||||
|
'glyph' => '⚠',
|
||||||
|
'label' => 'Cautionary',
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Early exit if invalid state.
|
// Early exit if invalid state.
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ for ( $i = 1; $i <= 3; $i++ ) {
|
|||||||
$signal_text = get_post_meta( $post_id, 'signal_row_' . $i, true );
|
$signal_text = get_post_meta( $post_id, 'signal_row_' . $i, true );
|
||||||
if ( ! empty( $signal_text ) ) {
|
if ( ! empty( $signal_text ) ) {
|
||||||
$signals[] = array(
|
$signals[] = array(
|
||||||
'glyph' => $i === 1 ? '✓' : ( $i === 2 ? '!' : '?' ),
|
'glyph' => 1 === $i ? '✓' : ( 2 === $i ? '!' : '?' ),
|
||||||
'label' => $signal_text,
|
'label' => $signal_text,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user