style: auto-fix PHPCS violations via phpcbf

This commit is contained in:
peptiderepo
2026-06-16 15:26:16 +00:00
parent 08d7696444
commit b9158d7dca
45 changed files with 1018 additions and 658 deletions

View File

@@ -27,7 +27,7 @@ class PR_Core_Topic_Taxonomy {
* @return void
*/
public function register_hooks(): void {
add_action( 'init', [ __CLASS__, 'register_topic_taxonomy' ] );
add_action( 'init', array( __CLASS__, 'register_topic_taxonomy' ) );
}
/**
@@ -45,18 +45,25 @@ class PR_Core_Topic_Taxonomy {
return;
}
register_taxonomy( self::TAX_TOPIC, 'post', [
'labels' => [
'name' => __( 'Peptide Topics', 'peptide-repo-core' ),
'singular_name' => __( 'Peptide Topic', 'peptide-repo-core' ),
],
'public' => true,
'publicly_queryable' => true,
'show_in_rest' => true,
'show_ui' => true,
'show_admin_column' => true,
'hierarchical' => false,
'rewrite' => [ 'slug' => 'peptide-topic', 'with_front' => false ],
] );
register_taxonomy(
self::TAX_TOPIC,
'post',
array(
'labels' => array(
'name' => __( 'Peptide Topics', 'peptide-repo-core' ),
'singular_name' => __( 'Peptide Topic', 'peptide-repo-core' ),
),
'public' => true,
'publicly_queryable' => true,
'show_in_rest' => true,
'show_ui' => true,
'show_admin_column' => true,
'hierarchical' => false,
'rewrite' => array(
'slug' => 'peptide-topic',
'with_front' => false,
),
)
);
}
}