Make WordPress Core


Ignore:
Timestamp:
11/17/2022 06:13:47 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Update various DocBlocks and inline comments per the documentation standards.

Includes minor formatting edits for consistency.

Follow-up to [53/tests], [12179], [12946], [35288], [37884], [38810], [38928], [46596], [48131], [52955], [53548], [53813], [53873], [54118], [54316], [54420], [54421], [54803].

See #56792.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/wpListUtil.php

    r54663 r54855  
    6565     * @param string $target_key   The key to pluck.
    6666     * @param array  $expected     The expected array.
    67      * @param string $index_key    Optional. Field from the element to use as keys for the new array. Default null.
     67     * @param string $index_key    Optional. Field from the element to use as keys for the new array.
     68     *                             Default null.
    6869     */
    6970    public function test_wp_list_util_pluck( $target_array, $target_key, $expected, $index_key = null ) {
     
    157158     * @param array  $expected      The expected array.
    158159     * @param array  $target_array  The array to create a list from.
    159      * @param array  $orderby       Optional. Either the field name to order by or an array of multiple orderby fields as $orderby => $order.
     160     * @param array  $orderby       Optional. Either the field name to order by or an array
     161     *                              of multiple orderby fields as `$orderby => $order`.
    160162     *                              Default empty array.
    161      * @param string $order         Optional. Either 'ASC' or 'DESC'. Only used if $orderby is a string. Default 'ASC'.
     163     * @param string $order         Optional. Either 'ASC' or 'DESC'. Only used if `$orderby`
     164     *                              is a string. Default 'ASC'.
    162165     * @param bool   $preserve_keys Optional. Whether to preserve keys. Default false.
    163166     */
     
    956959     * @param array  $expected      The expected array.
    957960     * @param array  $target_array  The array to create a list from.
    958      * @param array  $orderby       Optional. Either the field name to order by or an array of multiple orderby fields as $orderby => $order.
     961     * @param array  $orderby       Optional. Either the field name to order by or an array
     962     *                              of multiple orderby fields as `$orderby => $order`.
    959963     *                              Default empty array.
    960      * @param string $order         Optional. Either 'ASC' or 'DESC'. Only used if $orderby is a string. Default 'ASC'.
     964     * @param string $order         Optional. Either 'ASC' or 'DESC'. Only used if `$orderby`
     965     *                              is a string. Default 'ASC'.
    961966     * @param bool   $preserve_keys Optional. Whether to preserve keys. Default false.
    962967     */
Note: See TracChangeset for help on using the changeset viewer.