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

@@ -26,7 +26,7 @@ class PR_Core_Repo_Daily_Taxonomy {
* @return void
*/
public function register_hooks(): void {
add_action( 'init', [ __CLASS__, 'register_taxonomy' ] );
add_action( 'init', array( __CLASS__, 'register_taxonomy' ) );
}
/**
@@ -41,19 +41,26 @@ class PR_Core_Repo_Daily_Taxonomy {
return;
}
register_taxonomy( self::TAX_CATEGORY, PR_Core_Repo_Daily_CPT::POST_TYPE, [
'labels' => [
'name' => __( 'Category', 'peptide-repo-core' ),
'singular_name' => __( 'Category', 'peptide-repo-core' ),
],
'public' => true,
'publicly_queryable' => true,
'show_in_rest' => true,
'show_ui' => true,
'show_admin_column' => true,
'hierarchical' => false,
'rewrite' => [ 'slug' => 'daily/category', 'with_front' => false ],
] );
register_taxonomy(
self::TAX_CATEGORY,
PR_Core_Repo_Daily_CPT::POST_TYPE,
array(
'labels' => array(
'name' => __( 'Category', 'peptide-repo-core' ),
'singular_name' => __( 'Category', 'peptide-repo-core' ),
),
'public' => true,
'publicly_queryable' => true,
'show_in_rest' => true,
'show_ui' => true,
'show_admin_column' => true,
'hierarchical' => false,
'rewrite' => array(
'slug' => 'daily/category',
'with_front' => false,
),
)
);
}
/**
@@ -67,7 +74,7 @@ class PR_Core_Repo_Daily_Taxonomy {
* @return void
*/
public static function seed_terms(): void {
$terms = [ 'article', 'guide', 'comparison', 'news' ];
$terms = array( 'article', 'guide', 'comparison', 'news' );
foreach ( $terms as $term ) {
if ( ! term_exists( $term, self::TAX_CATEGORY ) ) {