From 4d04850d1a03c55689844bccc20916129b962519 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Wed, 11 Oct 2023 14:04:04 +1100 Subject: [PATCH] Remove `@return void` from PHP function docs. (#55237) --- packages/block-library/src/form/index.php | 4 ---- packages/block-library/src/image/index.php | 4 ---- packages/block-library/src/pattern/index.php | 2 -- packages/block-library/src/search/index.php | 4 ---- 4 files changed, 14 deletions(-) diff --git a/packages/block-library/src/form/index.php b/packages/block-library/src/form/index.php index 0dbbaf68387401..b9e3a9c25c6286 100644 --- a/packages/block-library/src/form/index.php +++ b/packages/block-library/src/form/index.php @@ -83,8 +83,6 @@ function block_core_form_extra_fields_comment_form( $extra_fields, $attributes ) /** * Sends an email if the form is a contact form. - * - * @return void */ function block_core_form_send_email() { check_ajax_referer( 'wp-block-form' ); @@ -126,8 +124,6 @@ function block_core_form_send_email() { /** * Send the data export/remove request if the form is a privacy-request form. - * - * @return void */ function block_core_form_privacy_form() { // Get the POST data. diff --git a/packages/block-library/src/image/index.php b/packages/block-library/src/image/index.php index e1f71964622c0c..9cce87d9e8bd76 100644 --- a/packages/block-library/src/image/index.php +++ b/packages/block-library/src/image/index.php @@ -310,8 +310,6 @@ function block_core_image_render_lightbox( $block_content, $block ) { * @since 6.4.0 * * @global WP_Scripts $wp_scripts - * - * @return void */ function block_core_image_ensure_interactivity_dependency() { global $wp_scripts; @@ -327,8 +325,6 @@ function block_core_image_ensure_interactivity_dependency() { /** * Registers the `core/image` block on server. - * - * @return void */ function register_block_core_image() { register_block_type_from_metadata( diff --git a/packages/block-library/src/pattern/index.php b/packages/block-library/src/pattern/index.php index fc4652a7c22e89..1f5477968b92d1 100644 --- a/packages/block-library/src/pattern/index.php +++ b/packages/block-library/src/pattern/index.php @@ -7,8 +7,6 @@ /** * Registers the `core/pattern` block on the server. - * - * @return void */ function register_block_core_pattern() { register_block_type_from_metadata( diff --git a/packages/block-library/src/search/index.php b/packages/block-library/src/search/index.php index ed3d1cf4b847a7..f00ecfe6abe1cc 100644 --- a/packages/block-library/src/search/index.php +++ b/packages/block-library/src/search/index.php @@ -281,8 +281,6 @@ function classnames_for_block_core_search( $attributes ) { * @param array $wrapper_styles Current collection of wrapper styles. * @param array $button_styles Current collection of button styles. * @param array $input_styles Current collection of input styles. - * - * @return void */ function apply_block_core_search_border_style( $attributes, $property, $side, &$wrapper_styles, &$button_styles, &$input_styles ) { $is_button_inside = isset( $attributes['buttonPosition'] ) && 'button-inside' === $attributes['buttonPosition']; @@ -327,8 +325,6 @@ function apply_block_core_search_border_style( $attributes, $property, $side, &$ * @param array $wrapper_styles Current collection of wrapper styles. * @param array $button_styles Current collection of button styles. * @param array $input_styles Current collection of input styles. - * - * @return void */ function apply_block_core_search_border_styles( $attributes, $property, &$wrapper_styles, &$button_styles, &$input_styles ) { apply_block_core_search_border_style( $attributes, $property, null, $wrapper_styles, $button_styles, $input_styles );