From 4349463f329b9a41e494d1ca54d240ba22098781 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 3 Mar 2021 19:24:44 +0000 Subject: [PATCH] Docs: Update documentation in some `WP_REST_Request` tests per the documentation standards. Follow-up to [49329]. See #52628. git-svn-id: https://develop.svn.wordpress.org/trunk@50484 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/rest-api/rest-request.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/phpunit/tests/rest-api/rest-request.php b/tests/phpunit/tests/rest-api/rest-request.php index 3502778972..6ec0491f0c 100644 --- a/tests/phpunit/tests/rest-api/rest-request.php +++ b/tests/phpunit/tests/rest-api/rest-request.php @@ -83,10 +83,10 @@ class Tests_REST_Request extends WP_UnitTestCase { /** * @dataProvider content_type_provider * - * @param string $header Header value. - * @param string $value Full type value. - * @param string $type Main type (application, text, etc). - * @param string $subtype Subtype (json, etc). + * @param string $header Header value. + * @param string $value Full type value. + * @param string $type Main type (application, text, etc). + * @param string $subtype Subtype (json, etc). * @param string $parameters Parameters (charset=utf-8, etc). */ public function test_content_type_parsing( $header, $value, $type, $subtype, $parameters ) { @@ -193,9 +193,9 @@ class Tests_REST_Request extends WP_UnitTestCase { * @ticket 49404 * @dataProvider alternate_json_content_type_provider * - * @param string $content_type The content-type - * @param string $source The source value. - * @param boolean $accept_json The accept_json value. + * @param string $content_type The content-type header. + * @param string $source The source value. + * @param bool $accept_json The accept_json value. */ public function test_alternate_json_content_type( $content_type, $source, $accept_json ) { $this->request_with_parameters(); @@ -224,8 +224,8 @@ class Tests_REST_Request extends WP_UnitTestCase { * @ticket 49404 * @dataProvider is_json_content_type_provider * - * @param string $content_type The content-type - * @param boolean $is_json The is_json value. + * @param string $content_type The content-type header. + * @param bool $is_json The is_json value. */ public function test_is_json_content_type( $content_type, $is_json ) { $this->request_with_parameters();