style: auto-fix PHPCS violations via phpcbf
This commit is contained in:
@@ -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 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user