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_Repo_Daily_CPT {
* @return void
*/
public function register_hooks(): void {
add_action( 'init', [ __CLASS__, 'register_post_type' ] );
add_action( 'init', array( __CLASS__, 'register_post_type' ) );
}
/**
@@ -42,7 +42,7 @@ class PR_Core_Repo_Daily_CPT {
return;
}
$labels = [
$labels = array(
'name' => __( 'Repo Daily', 'peptide-repo-core' ),
'singular_name' => __( 'Repo Daily', 'peptide-repo-core' ),
'add_new_item' => __( 'Add New Article', 'peptide-repo-core' ),
@@ -54,9 +54,9 @@ class PR_Core_Repo_Daily_CPT {
'not_found_in_trash' => __( 'No articles found in trash', 'peptide-repo-core' ),
'all_items' => __( 'All Articles', 'peptide-repo-core' ),
'menu_name' => __( 'Repo Daily', 'peptide-repo-core' ),
];
);
$args = [
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
@@ -71,9 +71,12 @@ class PR_Core_Repo_Daily_CPT {
'map_meta_cap' => true,
'hierarchical' => false,
'has_archive' => true,
'rewrite' => [ 'slug' => 'daily', 'with_front' => false ],
'supports' => [ 'title', 'editor', 'excerpt', 'thumbnail', 'custom-fields' ],
];
'rewrite' => array(
'slug' => 'daily',
'with_front' => false,
),
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'custom-fields' ),
);
register_post_type( self::POST_TYPE, $args );
}