Make WordPress Core


Ignore:
Timestamp:
08/21/2026 04:09:21 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Docs: Remove a 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 between them:

/**
 * Summary.
 *
 * @param string $var Description.
 * @return string Description.
 */

This corrects 65 docblocks across 29 files in the PHPUnit test suite.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/13119.

Follow-up to [63320].

Props mukesh27.
See #65818, #65860.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-bookmark.php

    r55019 r63333  
    3030         *
    3131         * @param array $args Arguments for the link object.
    32          *
    3332         * @return int|WP_Error The link ID on success, WP_Error object on failure.
    3433         */
    … …  
    4544         * @param int   $link_id ID of the link to update.
    4645         * @param array $fields  The fields to update.
    47          *
    4846         * @return int|WP_Error The link ID on success, WP_Error object on failure.
    4947         */
    … …  
    6664         *
    6765         * @param int $link_id ID of the link to retrieve.
    68          *
    6966         * @return object|null The link object on success, null on failure.
    7067         */
Note: See TracChangeset for help on using the changeset viewer.