Make WordPress Core


Ignore:
Timestamp:
06/20/2020 12:57:00 PM (20 months ago)
Author:
SergeyBiryukov
Message:

Docs: Remove extra spaces from @param tags.

Per the documentation standards, @param tags should be aligned with each other, but not with the @return tag.

See #49572.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api.php

    r48102 r48110  
    718718 * @since 5.3.0
    719719 *
    720  * @param  array $array1 The array with master keys to check.
    721  * @param  array $array2 An array to compare keys against.
     720 * @param array $array1 The array with master keys to check.
     721 * @param array $array2 An array to compare keys against.
    722722 * @return array An associative array containing all the entries of array1 which have keys
    723723 *               that are present in all arguments.
     
    10631063 * @since 4.7.0
    10641064 *
    1065  * @param  mixed            $value
    1066  * @param  WP_REST_Request $request
    1067  * @param  string           $param
     1065 * @param mixed           $value
     1066 * @param WP_REST_Request $request
     1067 * @param string          $param
    10681068 * @return true|WP_Error
    10691069 */
     
    10831083 * @since 4.7.0
    10841084 *
    1085  * @param  mixed            $value
    1086  * @param  WP_REST_Request $request
    1087  * @param  string           $param
     1085 * @param mixed           $value
     1086 * @param WP_REST_Request $request
     1087 * @param string          $param
    10881088 * @return mixed
    10891089 */
     
    11061106 * @since 4.7.0
    11071107 *
    1108  * @param  mixed            $value
    1109  * @param  WP_REST_Request $request
    1110  * @param  string           $param
     1108 * @param mixed           $value
     1109 * @param WP_REST_Request $request
     1110 * @param string          $param
    11111111 * @return mixed
    11121112 */
     
    11301130 * @since 4.7.0
    11311131 *
    1132  * @param  string $ip IP address.
     1132 * @param string $ip IP address.
    11331133 * @return string|false The valid IP address, otherwise false.
    11341134 */
     
    16341634 * @since 5.0.0
    16351635 *
    1636  * @param  array  $memo Reduce accumulator.
    1637  * @param  string $path REST API path to preload.
    1638  * @return array        Modified reduce accumulator.
     1636 * @param array  $memo Reduce accumulator.
     1637 * @param string $path REST API path to preload.
     1638 * @return array Modified reduce accumulator.
    16391639 */
    16401640function rest_preload_api_request( $memo, $path ) {
Note: See TracChangeset for help on using the changeset viewer.