Skip to content

Commit efa56a3

Browse files
Fix CS
1 parent 9f8f520 commit efa56a3

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

duplicate-post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ function __duplicate_post_main() {
8383
*
8484
* @see 'plugin_action_links_$plugin_file'
8585
*
86-
* @param array $actions An array of plugin action links.
87-
* @return array
86+
* @param array<string, string> $actions An array of plugin action links.
87+
* @return array<string, string>
8888
*/
8989
function duplicate_post_plugin_actions( $actions ) {
9090
$settings_action = [

src/ui/bulk-actions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public function add_bulk_filters() {
5858
/**
5959
* Adds 'Rewrite & Republish' to the bulk action dropdown.
6060
*
61-
* @param array $bulk_actions The bulk actions array.
61+
* @param array<string, string> $bulk_actions The bulk actions array.
6262
*
63-
* @return array The bulk actions array.
63+
* @return array<string, string> The bulk actions array.
6464
*/
6565
public function register_bulk_action( $bulk_actions ) {
6666
$is_draft_or_trash = isset( $_REQUEST['post_status'] ) && \in_array( $_REQUEST['post_status'], [ 'draft', 'trash' ], true );

src/ui/classic-editor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ public function change_schedule_strings_classic_editor( $translation, $text, $co
258258
/**
259259
* Changes the post-scheduled notice when a post or page intended for republishing is scheduled.
260260
*
261-
* @param array[] $messages Post updated messaged.
261+
* @param array<string, array<int, string>> $messages Post updated messaged.
262262
*
263-
* @return array[] The to-be-used messages.
263+
* @return array<string, array<int, string>> The to-be-used messages.
264264
*/
265265
public function change_scheduled_notice_classic_editor( $messages ) {
266266
$post = \get_post();

src/ui/column.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ public function register_hooks() {
5959
/**
6060
* Adds Original item column to the post list.
6161
*
62-
* @param array $post_columns The post columns array.
62+
* @param array<string, string> $post_columns The post columns array.
6363
*
64-
* @return array The updated array.
64+
* @return array<string, string> The updated array.
6565
*/
6666
public function add_original_column( $post_columns ) {
6767
if ( \is_array( $post_columns ) ) {

src/ui/post-states.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public function register_hooks() {
3939
/**
4040
* Shows link to original post in the post states.
4141
*
42-
* @param array $post_states The array of post states.
43-
* @param WP_Post $post The current post.
42+
* @param array<string, string> $post_states The array of post states.
43+
* @param WP_Post $post The current post.
4444
*
45-
* @return array The updated post states array.
45+
* @return array<string, string> The updated post states array.
4646
*/
4747
public function show_original_in_post_states( $post_states, $post ) {
4848
if ( ! $post instanceof WP_Post

0 commit comments

Comments
 (0)