From 71e581cf5221a6610961b0c61a6185961eed5afd Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 4 Oct 2024 13:17:35 +0000 Subject: [PATCH] Coding Standards: Committing changes after `composer format`. This commits some minor changes made when running `composer format`. Follow up to [58975], [59011], [59115]. See #61103, #62014, #61648. git-svn-id: https://develop.svn.wordpress.org/trunk@59166 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-debug-data.php | 2 +- src/wp-admin/includes/upgrade.php | 6 +++--- src/wp-includes/blocks.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php index d112130ecf033..a99a6fb9aae16 100644 --- a/src/wp-admin/includes/class-wp-debug-data.php +++ b/src/wp-admin/includes/class-wp-debug-data.php @@ -1247,7 +1247,7 @@ private static function get_wp_media(): array { private static function get_wp_mu_plugins(): array { // List must use plugins if there are any. $mu_plugins = get_mu_plugins(); - $fields = array(); + $fields = array(); foreach ( $mu_plugins as $plugin_path => $plugin ) { $plugin_version = $plugin['Version']; diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 08d04ae2f147c..090a5f1853e6f 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -992,9 +992,9 @@ function upgrade_110() { $time_difference = $all_options->time_difference; - $server_time = time() + gmdate( 'Z' ); - $weblogger_time = $server_time + $time_difference * HOUR_IN_SECONDS; - $gmt_time = time(); + $server_time = time() + gmdate( 'Z' ); + $weblogger_time = $server_time + $time_difference * HOUR_IN_SECONDS; + $gmt_time = time(); $diff_gmt_server = ( $gmt_time - $server_time ) / HOUR_IN_SECONDS; $diff_weblogger_server = ( $weblogger_time - $server_time ) / HOUR_IN_SECONDS; diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 34f1d921dda66..9d8f4bfaf9845 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -2533,7 +2533,7 @@ function build_query_vars_from_query_block( $block, $page ) { // Add any remaining formats to the formats query. if ( ! empty( $formats ) ) { // Add the `post-format-` prefix. - $terms = array_map( + $terms = array_map( static function ( $format ) { return "post-format-$format"; },