Make WordPress Core


Ignore:
Timestamp:
08/17/2026 01:13:55 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Docs: Remove a blank line between @param and @return in core docblocks.

The ​PHP inline documentation standards place @return immediately after the last @param tag, with no blank line between them:

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

This corrects 44 docblocks across 33 files in src/wp-includes that used a line break between the two tags.

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

Props mukesh27, dhruvang21.
See #65818, #65860.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-type.php

    r62178 r63320  
    358358         *
    359359         * @param string $name Deprecated property name.
    360          *
    361360         * @return string|string[]|null The value read from the new property if the first item in the array provided,
    362361         *                              null when value not found or when unknown property name provided.
    … …  
    394393         *
    395394         * @param string $name Deprecated property name.
    396          *
    397395         * @return bool Returns true when for the new property the first item in the array exists,
    398396         *              or false otherwise.
Note: See TracChangeset for help on using the changeset viewer.