Fix WPCS: split multi-item associative arrays in template.php
This commit is contained in:
@@ -101,9 +101,18 @@ class PSA_Template {
|
|||||||
// Source badge.
|
// Source badge.
|
||||||
if ( $source && 'pending' !== $source ) {
|
if ( $source && 'pending' !== $source ) {
|
||||||
$badges = array(
|
$badges = array(
|
||||||
'ai-generated' => array( 'label' => 'AI-Generated Content', 'class' => 'psa-badge-ai' ),
|
'ai-generated' => array(
|
||||||
'pubchem' => array( 'label' => 'PubChem Verified', 'class' => 'psa-badge-verified' ),
|
'label' => 'AI-Generated Content',
|
||||||
'manual' => array( 'label' => 'Manually Curated', 'class' => 'psa-badge-manual' ),
|
'class' => 'psa-badge-ai',
|
||||||
|
),
|
||||||
|
'pubchem' => array(
|
||||||
|
'label' => 'PubChem Verified',
|
||||||
|
'class' => 'psa-badge-verified',
|
||||||
|
),
|
||||||
|
'manual' => array(
|
||||||
|
'label' => 'Manually Curated',
|
||||||
|
'class' => 'psa-badge-manual',
|
||||||
|
),
|
||||||
);
|
);
|
||||||
$badge = $badges[ $source ] ?? $badges['ai-generated'];
|
$badge = $badges[ $source ] ?? $badges['ai-generated'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user