From c0847fa85b168f09b8f9a3ab72957449cfafed68 Mon Sep 17 00:00:00 2001 From: Mukesh Panchal Date: Sun, 16 Aug 2026 12:14:56 +0530 Subject: [PATCH] Docs: Remove the blank line between `@param` and `@return` in test docblocks. The PHP inline documentation standards place `@return` immediately after the last `@param` tag, with no blank line separating them. This corrects 65 docblocks across 29 files in the PHPUnit test suite that used a line break between the two tags. This is a follow-up to the same correction made in `src/wp-includes`, kept as a separate change to keep each diff focused. Co-Authored-By: Claude Opus 5 (1M context) --- .../class-wp-unittest-factory-callback-after-create.php | 1 - .../factory/class-wp-unittest-factory-for-attachment.php | 2 -- .../factory/class-wp-unittest-factory-for-blog.php | 2 -- .../factory/class-wp-unittest-factory-for-bookmark.php | 3 --- .../factory/class-wp-unittest-factory-for-comment.php | 4 ---- .../factory/class-wp-unittest-factory-for-network.php | 2 -- .../factory/class-wp-unittest-factory-for-post.php | 3 --- .../factory/class-wp-unittest-factory-for-term.php | 4 ---- .../factory/class-wp-unittest-factory-for-thing.php | 6 ------ .../factory/class-wp-unittest-factory-for-user.php | 3 --- tests/phpunit/tests/ajax/wpAjaxCropImage.php | 1 - .../tests/ajax/wpAjaxWpPrivacyErasePersonalData.php | 7 ------- .../tests/ajax/wpAjaxWpPrivacyExportPersonalData.php | 7 ------- tests/phpunit/tests/block-supports/aria-label.php | 1 - tests/phpunit/tests/block-supports/shadow.php | 1 - tests/phpunit/tests/blocks/wpBlockType.php | 1 - tests/phpunit/tests/customize/manager.php | 3 --- tests/phpunit/tests/customize/selective-refresh-ajax.php | 1 - tests/phpunit/tests/customize/setting.php | 2 -- tests/phpunit/tests/functions.php | 1 - .../tests/html-api/wpHtmlProcessorWebPlatformTests.php | 2 -- tests/phpunit/tests/image/editor.php | 1 - tests/phpunit/tests/kses/wpFilterGlobalStylesPost.php | 1 - tests/phpunit/tests/post/metaRevisions.php | 1 - .../tests/privacy/wpPrivacyDeleteOldExportFiles.php | 1 - tests/phpunit/tests/rest-api/rest-sidebars-controller.php | 1 - tests/phpunit/tests/rest-api/rest-widgets-controller.php | 1 - tests/phpunit/tests/rest-api/wpRestMenuItemsController.php | 1 - tests/phpunit/tests/term/wpGenerateTagCloud.php | 1 - 29 files changed, 65 deletions(-) diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php index 115c950c2f27e..a9386f1c06233 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php @@ -24,7 +24,6 @@ public function __construct( $callback ) { * @since UT (3.7.0) * * @param int $object_id ID of the object to apply the callback on. - * * @return mixed Updated object field. */ public function call( $object_id ) { diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php index 2c1872795fb37..7919404c58b2b 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php @@ -26,7 +26,6 @@ class WP_UnitTest_Factory_For_Attachment extends WP_UnitTest_Factory_For_Post { * } * @param int $legacy_parent Deprecated. * @param array $legacy_args Deprecated. - * * @return int|WP_Error The attachment ID on success, WP_Error object on failure. */ public function create_object( $args, $legacy_parent = 0, $legacy_args = array() ) { @@ -58,7 +57,6 @@ public function create_object( $args, $legacy_parent = 0, $legacy_args = array() * @param string $file Full path to the file to create an attachment object for. * The name of the file will be used as the attachment name. * @param int $parent_post_id ID of the post to attach the file to. - * * @return int|WP_Error The attachment ID on success, WP_Error object on failure. */ public function create_upload_object( $file, $parent_post_id = 0 ) { diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php index c9ce9f335ccaf..3b807055130d4 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php @@ -27,7 +27,6 @@ public function __construct( $factory = null ) { * Creates a site object. * * @param array $args Arguments for the site object. - * * @return int|WP_Error The site ID on success, WP_Error object on failure. */ public function create_object( $args ) { @@ -80,7 +79,6 @@ public function update_object( $blog_id, $fields ) {} * Retrieves a site by a given ID. * * @param int $blog_id ID of the site to retrieve. - * * @return WP_Site|null The site object on success, null on failure. */ public function get_object_by_id( $blog_id ) { diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-bookmark.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-bookmark.php index d9f8e06fbe353..124be01c5b89d 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-bookmark.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-bookmark.php @@ -29,7 +29,6 @@ public function __construct( $factory = null ) { * @since 6.2.0 Returns a WP_Error object on failure. * * @param array $args Arguments for the link object. - * * @return int|WP_Error The link ID on success, WP_Error object on failure. */ public function create_object( $args ) { @@ -44,7 +43,6 @@ public function create_object( $args ) { * * @param int $link_id ID of the link to update. * @param array $fields The fields to update. - * * @return int|WP_Error The link ID on success, WP_Error object on failure. */ public function update_object( $link_id, $fields ) { @@ -65,7 +63,6 @@ public function update_object( $link_id, $fields ) { * @since 4.6.0 * * @param int $link_id ID of the link to retrieve. - * * @return object|null The link object on success, null on failure. */ public function get_object_by_id( $link_id ) { diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-comment.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-comment.php index 194a8bf6eca0b..7095070005a22 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-comment.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-comment.php @@ -31,7 +31,6 @@ public function __construct( $factory = null ) { * @global wpdb $wpdb WordPress database abstraction object. * * @param array $args The comment details. - * * @return int|WP_Error The comment ID on success, WP_Error object on failure. */ public function create_object( $args ) { @@ -58,7 +57,6 @@ public function create_object( $args ) { * * @param int $comment_id The comment ID. * @param array $fields The comment details. - * * @return int|WP_Error The value 1 if the comment was updated, 0 if not updated. * WP_Error object on failure. */ @@ -76,7 +74,6 @@ public function update_object( $comment_id, $fields ) { * @param int $count Total amount of comments to create. * @param array $args The comment details. * @param null $generation_definitions Default values. - * * @return int[] Array with the comment IDs. */ public function create_post_comments( $post_id, $count = 1, $args = array(), $generation_definitions = null ) { @@ -90,7 +87,6 @@ public function create_post_comments( $post_id, $count = 1, $args = array(), $ge * @since UT (3.7.0) * * @param int $comment_id ID of the comment to retrieve. - * * @return WP_Comment|null WP_Comment object on success, null on failure. */ public function get_object_by_id( $comment_id ) { diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-network.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-network.php index 686ebe89bba3d..6fc53645f07de 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-network.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-network.php @@ -30,7 +30,6 @@ public function __construct( $factory = null ) { * @since 6.2.0 Returns a WP_Error object on failure. * * @param array $args Arguments for the network object. - * * @return int|WP_Error The network ID on success, WP_Error object on failure. */ public function create_object( $args ) { @@ -74,7 +73,6 @@ public function update_object( $network_id, $fields ) {} * @since 3.9.0 * * @param int $network_id ID of the network to retrieve. - * * @return WP_Network|null The network object on success, null on failure. */ public function get_object_by_id( $network_id ) { diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-post.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-post.php index 16fdf04166776..4f553b02a577b 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-post.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-post.php @@ -30,7 +30,6 @@ public function __construct( $factory = null ) { * @since 6.2.0 Returns a WP_Error object on failure. * * @param array $args Array with elements for the post. - * * @return int|WP_Error The post ID on success, WP_Error object on failure. */ public function create_object( $args ) { @@ -45,7 +44,6 @@ public function create_object( $args ) { * * @param int $post_id ID of the post to update. * @param array $fields Post data. - * * @return int|WP_Error The post ID on success, WP_Error object on failure. */ public function update_object( $post_id, $fields ) { @@ -59,7 +57,6 @@ public function update_object( $post_id, $fields ) { * @since UT (3.7.0) * * @param int $post_id ID of the post to retrieve. - * * @return WP_Post|null WP_Post object on success, null on failure. */ public function get_object_by_id( $post_id ) { diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php index 6b2b7340df176..e5ad663837ef8 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php @@ -31,7 +31,6 @@ public function __construct( $factory = null, $taxonomy = null ) { * @since UT (3.7.0) * * @param array $args Array of arguments for inserting a term. - * * @return int|WP_Error The term ID on success, WP_Error object on failure. */ public function create_object( $args ) { @@ -53,7 +52,6 @@ public function create_object( $args ) { * * @param int|object $term The term to update. * @param array $fields Array of arguments for updating a term. - * * @return int|WP_Error The term ID on success, WP_Error object on failure. */ public function update_object( $term, $fields ) { @@ -99,7 +97,6 @@ public function add_post_terms( $post_id, $terms, $taxonomy, $append = true ) { * * @param array $args Array or string of arguments for inserting a term. * @param null $generation_definitions The default values. - * * @return WP_Term|WP_Error|null WP_Term on success. WP_Error if taxonomy does not exist. Null for miscellaneous failure. */ public function create_and_get( $args = array(), $generation_definitions = null ) { @@ -120,7 +117,6 @@ public function create_and_get( $args = array(), $generation_definitions = null * @since UT (3.7.0) * * @param int $term_id ID of the term to retrieve. - * * @return WP_Term|WP_Error|null WP_Term on success. WP_Error if taxonomy does not exist. Null for miscellaneous failure. */ public function get_object_by_id( $term_id ) { diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php index 786e70bdc4b70..89cefcaf3b306 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php @@ -34,7 +34,6 @@ public function __construct( $factory, $default_generation_definitions = array() * @since UT (3.7.0) * * @param array $args The arguments. - * * @return int|WP_Error The object ID on success, WP_Error object on failure. */ abstract public function create_object( $args ); @@ -46,7 +45,6 @@ abstract public function create_object( $args ); * * @param int $object_id The object ID. * @param array $fields The values to update. - * * @return int|WP_Error The object ID on success, WP_Error object on failure. */ abstract public function update_object( $object_id, $fields ); @@ -115,7 +113,6 @@ public function create_and_get( $args = array(), $generation_definitions = null * @since UT (3.7.0) * * @param int $object_id The object ID. - * * @return mixed The object. Can be anything. */ abstract public function get_object_by_id( $object_id ); @@ -197,7 +194,6 @@ public function generate_args( $args = array(), $generation_definitions = null, * * @param WP_UnitTest_Factory_Callback_After_Create[] $callbacks Array with callback functions. * @param int $object_id ID of the object to apply callbacks for. - * * @return array The altered fields. */ public function apply_callbacks( $callbacks, $object_id ) { @@ -216,7 +212,6 @@ public function apply_callbacks( $callbacks, $object_id ) { * @since UT (3.7.0) * * @param callable $callback The callback function. - * * @return WP_UnitTest_Factory_Callback_After_Create */ public function callback( $callback ) { @@ -229,7 +224,6 @@ public function callback( $callback ) { * @since UT (3.7.0) * * @param array|object|string|mixed $value The value to add slashes to. - * * @return array|string The value with the possibly applied slashes. */ public function addslashes_deep( $value ) { diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-user.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-user.php index 5bdc8312fc2af..2a3f2d4d940e2 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-user.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-user.php @@ -27,7 +27,6 @@ public function __construct( $factory = null ) { * @since UT (3.7.0) * * @param array $args The user data to insert. - * * @return int|WP_Error The user ID on success, WP_Error object on failure. */ public function create_object( $args ) { @@ -41,7 +40,6 @@ public function create_object( $args ) { * * @param int $user_id ID of the user to update. * @param array $fields The user data to update. - * * @return int|WP_Error The user ID on success, WP_Error object on failure. */ public function update_object( $user_id, $fields ) { @@ -55,7 +53,6 @@ public function update_object( $user_id, $fields ) { * @since UT (3.7.0) * * @param int $user_id ID of the user ID to retrieve. - * * @return WP_User The user object. */ public function get_object_by_id( $user_id ) { diff --git a/tests/phpunit/tests/ajax/wpAjaxCropImage.php b/tests/phpunit/tests/ajax/wpAjaxCropImage.php index 3a23f3a425b50..7ccea87533f2a 100644 --- a/tests/phpunit/tests/ajax/wpAjaxCropImage.php +++ b/tests/phpunit/tests/ajax/wpAjaxCropImage.php @@ -214,7 +214,6 @@ private function prepare_post( WP_Post $attachment ) { /** * @param WP_Post $attachment - * * @return string */ private function get_attachment_filename( WP_Post $attachment ) { diff --git a/tests/phpunit/tests/ajax/wpAjaxWpPrivacyErasePersonalData.php b/tests/phpunit/tests/ajax/wpAjaxWpPrivacyErasePersonalData.php index 4f76ea12fb52d..d2c6446508784 100644 --- a/tests/phpunit/tests/ajax/wpAjaxWpPrivacyErasePersonalData.php +++ b/tests/phpunit/tests/ajax/wpAjaxWpPrivacyErasePersonalData.php @@ -170,7 +170,6 @@ protected function _set_eraser_callback( $callback ) { * @since 5.2.0 * * @param array $erasers List of data erasers. - * * @return array Array of data erasers. */ public function filter_eraser_callback_value( $erasers ) { @@ -197,7 +196,6 @@ protected function _unset_eraser_key( $key ) { * @since 5.2.0 * * @param array $erasers Erasers. - * * @return array Erasers. */ public function filter_unset_eraser_index( $erasers ) { @@ -229,7 +227,6 @@ protected function _unset_response_key( $key ) { * * @param string $email_address The requester's email address. * @param int $page Page number. - * * @return array Export data. */ public function filter_unset_response_index( $email_address, $page = 1 ) { @@ -639,7 +636,6 @@ public function test_error_when_eraser_messages_not_array() { * * @param string $email_address The requester's email address. * @param int $page Page number. - * * @return array Export data. */ public function filter_response_messages_invalid( $email_address, $page = 1 ) { @@ -741,7 +737,6 @@ public function test_output_should_be_filterable() { * @param int $page The page for this response. * @param int $request_id The privacy request post ID associated with this request. * @param string $eraser_key The key (slug) of the eraser that provided this data. - * * @return array Filtered erase response. */ public function filter_eraser_data_response( $response, $eraser_index, $email_address, $page, $request_id, $eraser_key ) { @@ -760,7 +755,6 @@ public function filter_eraser_data_response( $response, $eraser_index, $email_ad * @since 5.2.0 * * @param array $erasers An array of personal data erasers. - * * @return array An array of personal data erasers. */ public function register_custom_personal_data_eraser( $erasers ) { @@ -778,7 +772,6 @@ public function register_custom_personal_data_eraser( $erasers ) { * * @param string $email_address The comment author email address. * @param int $page Page number. - * * @return array Erase data. */ public function callback_personal_data_eraser( $email_address, $page = 1 ) { diff --git a/tests/phpunit/tests/ajax/wpAjaxWpPrivacyExportPersonalData.php b/tests/phpunit/tests/ajax/wpAjaxWpPrivacyExportPersonalData.php index 51e4cb1391dff..e79f0dffe98e8 100644 --- a/tests/phpunit/tests/ajax/wpAjaxWpPrivacyExportPersonalData.php +++ b/tests/phpunit/tests/ajax/wpAjaxWpPrivacyExportPersonalData.php @@ -204,7 +204,6 @@ protected function _unset_exporter_key( $key ) { * Unset a specified key in the test exporter array. * * @param array $exporters List of data exporters. - * * @return array List of data exporters. */ public function filter_unset_exporter_key( $exporters ) { @@ -579,7 +578,6 @@ public function test_error_when_exporter_missing_data_response() { * * @param string $email_address The requester's email address. * @param int $page Page number. - * * @return array Export data. */ public function callback_missing_data_response( $email_address, $page = 1 ) { @@ -615,7 +613,6 @@ public function test_function_should_error_when_exporter_missing_data_array_resp * * @param string $email_address The requester's email address. * @param int $page Page number. - * * @return array Export data. */ public function callback_missing_data_array_response( $email_address, $page = 1 ) { @@ -650,7 +647,6 @@ public function test_error_when_exporter_missing_done_response() { * * @param string $email_address The requester's email address. * @param int $page Page number. - * * @return array Export data. */ public function callback_missing_done_response( $email_address, $page = 1 ) { @@ -729,7 +725,6 @@ public function test_output_should_be_filterable() { * @param int $request_id The privacy request post ID associated with this request. * @param bool $send_as_email Whether the final results of the export should be emailed to the user. * @param string $exporter_key The key (slug) of the exporter that provided this data. - * * @return array The personal data for the given exporter and page. */ public function filter_exporter_data_response( $response, $exporter_index, $email_address, $page, $request_id, $send_as_email, $exporter_key ) { @@ -757,7 +752,6 @@ public function filter_exporter_data_response( $response, $exporter_index, $emai * @since 5.2.0 * * @param array $exporters An array of personal data exporters. - * * @return array An array of personal data exporters. */ public function filter_register_custom_personal_data_exporter( $exporters ) { @@ -775,7 +769,6 @@ public function filter_register_custom_personal_data_exporter( $exporters ) { * * @param string $email_address The requester's email address. * @param int $page Page number. - * * @return array Export data response. */ public function callback_custom_personal_data_exporter( $email_address, $page = 1 ) { diff --git a/tests/phpunit/tests/block-supports/aria-label.php b/tests/phpunit/tests/block-supports/aria-label.php index 93666ba0fb493..5e9a814721f85 100644 --- a/tests/phpunit/tests/block-supports/aria-label.php +++ b/tests/phpunit/tests/block-supports/aria-label.php @@ -26,7 +26,6 @@ public function tear_down() { * * @param string $block_name Name for the test block. * @param array $supports Array defining block support configuration. - * * @return WP_Block_Type The block type for the newly registered test block. */ private function register_aria_label_block_with_support( $block_name, $supports = array() ) { diff --git a/tests/phpunit/tests/block-supports/shadow.php b/tests/phpunit/tests/block-supports/shadow.php index c925bb2f43fe4..fbf7cc6fa98c0 100644 --- a/tests/phpunit/tests/block-supports/shadow.php +++ b/tests/phpunit/tests/block-supports/shadow.php @@ -26,7 +26,6 @@ public function tear_down() { * * @param string $block_name Name for the test block. * @param array $supports Array defining block support configuration. - * * @return WP_Block_Type The block type for the newly registered test block. */ private function register_shadow_block_with_support( $block_name, $supports = array() ) { diff --git a/tests/phpunit/tests/blocks/wpBlockType.php b/tests/phpunit/tests/blocks/wpBlockType.php index 3e69b67d965db..95e6ddbb51a33 100644 --- a/tests/phpunit/tests/blocks/wpBlockType.php +++ b/tests/phpunit/tests/blocks/wpBlockType.php @@ -588,7 +588,6 @@ public function test_variations_callback_happens_only_once() { * * @param array $variations Block variations before filter. * @param WP_Block_Type $block_type Block type. - * * @return array Block variations after filter. */ public function filter_test_variations( $variations, $block_type ) { diff --git a/tests/phpunit/tests/customize/manager.php b/tests/phpunit/tests/customize/manager.php index bedf0b39b3e95..6937fcd4b2c1e 100644 --- a/tests/phpunit/tests/customize/manager.php +++ b/tests/phpunit/tests/customize/manager.php @@ -3252,7 +3252,6 @@ public function test_customize_loaded_components_filter() { * * @param array $components Components. * @param WP_Customize_Manager $customize_manager Manager. - * * @return array Components. */ public function return_array_containing_widgets( $components, $customize_manager ) { @@ -3269,7 +3268,6 @@ public function return_array_containing_widgets( $components, $customize_manager * * @param array $components Components. * @param WP_Customize_Manager $customize_manager Manager. - * * @return array Components. */ public function return_array_containing_nav_menus( $components, $customize_manager ) { @@ -3561,7 +3559,6 @@ private function filtered_device_list() { * Callback for the customize_previewable_devices filter. * * @param array $devices The list of devices. - * * @return array */ public function filter_customize_previewable_devices( $devices ) { diff --git a/tests/phpunit/tests/customize/selective-refresh-ajax.php b/tests/phpunit/tests/customize/selective-refresh-ajax.php index 8d9305962b7f7..7c9c55e0c9856 100644 --- a/tests/phpunit/tests/customize/selective-refresh-ajax.php +++ b/tests/phpunit/tests/customize/selective-refresh-ajax.php @@ -359,7 +359,6 @@ public function test_handle_render_partials_request_with_single_valid_placement( * * @param array $partial_args Partial args. * @param string $partial_id Partial ID. - * * @return array|false Args. */ public function filter_customize_dynamic_partial_args( $partial_args, $partial_id ) { diff --git a/tests/phpunit/tests/customize/setting.php b/tests/phpunit/tests/customize/setting.php index 8addb229d4edc..917bbe59c4679 100644 --- a/tests/phpunit/tests/customize/setting.php +++ b/tests/phpunit/tests/customize/setting.php @@ -352,7 +352,6 @@ private function custom_type_setter( $name, $value ) { * * @param mixed $default_value * @param WP_Customize_Setting $setting - * * @return mixed|null */ public function custom_type_value_filter( $default_value, $setting = null ) { @@ -741,7 +740,6 @@ public function test_validate() { * * @param WP_Error $validity Validity. * @param string $value Value. - * * @return WP_Error */ public function filter_validate_for_test_validate( $validity, $value ) { diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php index 19c721aeaa46a..5a5ce53e6dc35 100644 --- a/tests/phpunit/tests/functions.php +++ b/tests/phpunit/tests/functions.php @@ -419,7 +419,6 @@ public function test_wp_unique_filename_with_additional_image_extension() { * (if the image editor in PHP supports it). * * @param array $formats - * * @return array */ public function image_editor_output_format_handler( $formats ) { diff --git a/tests/phpunit/tests/html-api/wpHtmlProcessorWebPlatformTests.php b/tests/phpunit/tests/html-api/wpHtmlProcessorWebPlatformTests.php index 0cd53678858bd..a7d9288393ad3 100644 --- a/tests/phpunit/tests/html-api/wpHtmlProcessorWebPlatformTests.php +++ b/tests/phpunit/tests/html-api/wpHtmlProcessorWebPlatformTests.php @@ -137,7 +137,6 @@ public function data_external_web_platform_tests() { * * @param string|null $test_context_element Context element for fragment parsing, or null for full document parsing. * @param string $test_name Test name. - * * @return bool True if the test case should be skipped. False otherwise. */ private static function should_skip_test( ?string $test_context_element, string $test_name ): bool { @@ -353,7 +352,6 @@ static function ( $a, $b ) { * Convert a given Web Platform Tests fixture file into a series of test cases. * * @param string $filename Path to `.dat` file with test cases. - * * @return Generator