Make WordPress Core

Changeset 48586


Ignore:
Timestamp:
07/23/2020 07:59:16 PM (4 years ago)
Author:
johnbillion
Message:

Docs: First pass at some inline docs fixes mostly made by PHPCBF.

See #49572, #50744

Location:
trunk/src
Files:
41 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php

    r48090 r48586  
    208208     *
    209209     * @param string $command
    210      * @param bool $returnbool
     210     * @param bool   $returnbool
    211211     * @return bool|string True on success, false on failure. String if the command was executed, `$returnbool`
    212212     *                     is false (default), and data from the resulting stream was retrieved.
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r48462 r48586  
    234234     * @since 4.0.0
    235235     *
    236      * @param string   $name      Method to call.
    237      * @param array    $arguments Arguments to pass when calling.
     236     * @param string $name      Method to call.
     237     * @param array  $arguments Arguments to pass when calling.
    238238     * @return mixed|bool Return value of the callback, false otherwise.
    239239     */
  • trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php

    r48424 r48586  
    214214     *
    215215     * @return array
    216      *
    217216     */
    218217    protected function get_views() {
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r48424 r48586  
    444444     * @since 4.3.0
    445445     *
    446      * @param WP_User $user       The current WP_User object.
    447      * @param string $column_name The current column name.
     446     * @param WP_User $user        The current WP_User object.
     447     * @param string  $column_name The current column name.
    448448     */
    449449    public function column_default( $user, $column_name ) {
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r48583 r48586  
    715715     * @global int $per_page
    716716     * @param array $posts
    717      * @param int $level
     717     * @param int   $level
    718718     */
    719719    public function display_rows( $posts = array(), $level = 0 ) {
     
    735735    /**
    736736     * @param array $posts
    737      * @param int $level
     737     * @param int   $level
    738738     */
    739739    private function _display_rows( $posts, $level = 0 ) {
     
    760760     * @global WP_Post $post Global post object.
    761761     * @param array $pages
    762      * @param int $pagenum
    763      * @param int $per_page
     762     * @param int   $pagenum
     763     * @param int   $per_page
    764764     */
    765765    private function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) {
     
    866866     *
    867867     * @param array $children_pages
    868      * @param int $count
    869      * @param int $parent
    870      * @param int $level
    871      * @param int $pagenum
    872      * @param int $per_page
     868     * @param int   $count
     869     * @param int   $parent
     870     * @param int   $level
     871     * @param int   $pagenum
     872     * @param int   $per_page
    873873     * @param array $to_display List of pages to be displayed. Passed by reference.
    874874     */
  • trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r48344 r48586  
    1111    /**
    1212     * WP_Site_Health_Auto_Updates constructor.
     13     *
    1314     * @since 5.2.0
    1415     */
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r47808 r48586  
    270270    /**
    271271     * @param string $taxonomy
    272      * @param array $terms
    273      * @param array $children
    274      * @param int   $start
    275      * @param int   $per_page
    276      * @param int   $count
    277      * @param int   $parent
    278      * @param int   $level
     272     * @param array  $terms
     273     * @param array  $children
     274     * @param int    $start
     275     * @param int    $per_page
     276     * @param int    $count
     277     * @param int    $parent
     278     * @param int    $level
    279279     */
    280280    private function _rows( $taxonomy, $terms, &$children, $start, $per_page, &$count, $parent = 0, $level = 0 ) {
     
    333333    /**
    334334     * @global string $taxonomy
    335      * @param WP_Term $tag Term object.
    336      * @param int $level
     335     * @param WP_Term $tag   Term object.
     336     * @param int     $level
    337337     */
    338338    public function single_row( $tag, $level = 0 ) {
     
    601601
    602602    /**
    603      * @param WP_Term $tag Term object.
    604      * @param string $column_name
     603     * @param WP_Term $tag         Term object.
     604     * @param string  $column_name Name of the column.
    605605     * @return string
    606606     */
  • trunk/src/wp-admin/includes/dashboard.php

    r48424 r48586  
    11681168 *
    11691169 * @param string $widget_id
    1170  * @param array $form_inputs
     1170 * @param array  $form_inputs
    11711171 */
    11721172function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) {
  • trunk/src/wp-admin/includes/image.php

    r48574 r48586  
    469469 * @since 2.1.0
    470470 *
    471  * @param int $attachment_id Attachment Id to process.
    472  * @param string $file Filepath of the Attached image.
     471 * @param int    $attachment_id Attachment Id to process.
     472 * @param string $file          Filepath of the Attached image.
    473473 * @return mixed Metadata for attachment.
    474474 */
  • trunk/src/wp-admin/includes/media.php

    r48232 r48586  
    666666 * @global int $post_ID
    667667 * @param string $type
    668  * @param int $post_id
     668 * @param int    $post_id
    669669 * @param string $tab
    670670 * @return string
     
    10871087 *
    10881088 * @param WP_Post $post
    1089  * @param string $checked
     1089 * @param string  $checked
    10901090 * @return string
    10911091 */
     
    11241124 * @since 2.7.0
    11251125 *
    1126  * @param WP_Post $post
     1126 * @param WP_Post     $post
    11271127 * @param bool|string $check
    11281128 * @return array
     
    12031203 *
    12041204 * @param WP_Post $post
    1205  * @param string $url_type
     1205 * @param string  $url_type
    12061206 * @return string
    12071207 */
     
    12511251 * @since 2.5.0
    12521252 *
    1253  * @param array $form_fields
     1253 * @param array  $form_fields
    12541254 * @param object $post
    12551255 * @return array
     
    13171317 * @since 2.5.0
    13181318 *
    1319  * @param string $html
     1319 * @param string  $html
    13201320 * @param integer $attachment_id
    1321  * @param array $attachment
     1321 * @param array   $attachment
    13221322 * @return string
    13231323 */
     
    13441344 *
    13451345 * @param WP_Post $post
    1346  * @param array $errors
     1346 * @param array   $errors
    13471347 * @return array
    13481348 */
     
    14871487 * @global WP_Query $wp_the_query WordPress Query object.
    14881488 *
    1489  * @param int $post_id Optional. Post ID.
    1490  * @param array $errors Errors for attachment, if any.
     1489 * @param int   $post_id Optional. Post ID.
     1490 * @param array $errors  Errors for attachment, if any.
    14911491 * @return string
    14921492 */
     
    15401540 * @global string $redir_tab
    15411541 *
    1542  * @param int $attachment_id Attachment ID for modification.
    1543  * @param string|array $args Optional. Override defaults.
     1542 * @param int          $attachment_id Attachment ID for modification.
     1543 * @param string|array $args          Optional. Override defaults.
    15441544 * @return string HTML form for attachment.
    15451545 */
     
    22722272 * @since 2.5.0
    22732273 *
    2274  * @param string $type
    2275  * @param object $errors
     2274 * @param string  $type
     2275 * @param object  $errors
    22762276 * @param integer $id
    22772277 */
     
    23462346 * @since 2.7.0
    23472347 *
    2348  * @param string $type
    2349  * @param object $errors
     2348 * @param string  $type
     2349 * @param object  $errors
    23502350 * @param integer $id
    23512351 */
  • trunk/src/wp-admin/includes/misc.php

    r48574 r48586  
    904904 *
    905905 * @param DOMDocument $doc
    906  * @param string $filename
     906 * @param string      $filename
    907907 */
    908908function saveDomDocument( $doc, $filename ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
  • trunk/src/wp-admin/includes/nav-menu.php

    r48473 r48586  
    11371137 * @since 3.6.0
    11381138 *
    1139  * @param int|string $nav_menu_selected_id (id, slug, or name ) of the currently-selected menu
    1140  * @param string $nav_menu_selected_title Title of the currently-selected menu
     1139 * @param int|string $nav_menu_selected_id    ID, slug, or name of the currently-selected menu.
     1140 * @param string     $nav_menu_selected_title Title of the currently-selected menu.
    11411141 * @return array The menu updated message
    11421142 */
  • trunk/src/wp-admin/includes/privacy-tools.php

    r48574 r48586  
    720720/**
    721721 * Intercept personal data exporter page Ajax responses in order to assemble the personal data export file.
     722 *
    722723 * @see wp_privacy_personal_data_export_page
    723724 * @since 4.9.6
  • trunk/src/wp-admin/includes/schema.php

    r48575 r48586  
    3030 * @global wpdb $wpdb WordPress database abstraction object.
    3131 *
    32  * @param string $scope Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
    33  * @param int $blog_id Optional. The site ID for which to retrieve SQL. Default is the current site ID.
     32 * @param string $scope   Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
     33 * @param int    $blog_id Optional. The site ID for which to retrieve SQL. Default is the current site ID.
    3434 * @return string The SQL needed to create the requested tables.
    3535 */
  • trunk/src/wp-includes/admin-bar.php

    r48211 r48586  
    12421242 *
    12431243 * @param string $context Context of this preference check. Defaults to 'front'. The 'admin'
    1244  *  preference is no longer used.
    1245  * @param int $user Optional. ID of the user to check, defaults to 0 for current user.
     1244 *                        preference is no longer used.
     1245 * @param int    $user    Optional. ID of the user to check, defaults to 0 for current user.
    12461246 * @return bool Whether the admin bar should be showing for this user.
    12471247 */
  • trunk/src/wp-includes/bookmark-template.php

    r48104 r48586  
    2323 * @access private
    2424 *
    25  * @param array $bookmarks List of bookmarks to traverse.
     25 * @param array        $bookmarks List of bookmarks to traverse.
    2626 * @param string|array $args {
    2727 *     Optional. Bookmarks arguments.
  • trunk/src/wp-includes/bookmark.php

    r48197 r48586  
    1515 *
    1616 * @param int|stdClass $bookmark
    17  * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
    18  *                       an stdClass object, an associative array, or a numeric array, respectively. Default OBJECT.
    19  * @param string $filter Optional. How to sanitize bookmark fields. Default 'raw'.
     17 * @param string       $output   Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond
     18 *                               to an stdClass object, an associative array, or a numeric array, respectively.
     19 *                               Default OBJECT.
     20 * @param string       $filter   Optional. How to sanitize bookmark fields. Default 'raw'.
    2021 * @return array|object|null Type returned depends on $output value.
    2122 */
     
    6970 * @since 2.3.0
    7071 *
    71  * @param string $field The name of the data field to return
    72  * @param int $bookmark The bookmark ID to get field
    73  * @param string $context Optional. The context of how the field will be used.
     72 * @param string $field    The name of the data field to return.
     73 * @param int    $bookmark The bookmark ID to get field.
     74 * @param string $context  Optional. The context of how the field will be used.
    7475 * @return string|WP_Error
    7576 */
  • trunk/src/wp-includes/cache.php

    r47944 r48586  
    112112 * @global WP_Object_Cache $wp_object_cache Object cache global instance.
    113113 *
    114  * @param int|string  $key    The key under which the cache contents are stored.
    115  * @param string      $group Optional. Where the cache contents are grouped. Default empty.
    116  * @param bool        $force Optional. Whether to force an update of the local cache
    117  *                            from the persistent cache. Default false.
    118  * @param bool        $found Optional. Whether the key was found in the cache (passed by reference).
    119  *                            Disambiguates a return of false, a storable value. Default null.
     114 * @param int|string $key   The key under which the cache contents are stored.
     115 * @param string     $group Optional. Where the cache contents are grouped. Default empty.
     116 * @param bool       $force Optional. Whether to force an update of the local cache
     117 *                          from the persistent cache. Default false.
     118 * @param bool       $found Optional. Whether the key was found in the cache (passed by reference).
     119 *                          Disambiguates a return of false, a storable value. Default null.
    120120 * @return mixed|false The cache contents on success, false on failure to retrieve contents.
    121121 */
  • trunk/src/wp-includes/canonical.php

    r48185 r48586  
    3636 *
    3737 * @param string $requested_url Optional. The URL that was requested, used to
    38  *      figure if redirect is needed.
    39  * @param bool $do_redirect Optional. Redirect to the new URL.
     38 *                              figure if redirect is needed.
     39 * @param bool   $do_redirect  Optional. Redirect to the new URL.
    4040 * @return string|void The string of the URL, if redirect needed.
    4141 */
     
    783783 *
    784784 * @param string $query_string
    785  * @param array $args_to_check
     785 * @param array  $args_to_check
    786786 * @param string $url
    787787 * @return string The altered query string
  • trunk/src/wp-includes/category-template.php

    r48574 r48586  
    127127 * @param string $separator Optional. Separator between the categories. By default, the links are placed
    128128 *                          in an unordered list. An empty string will result in the default behavior.
    129  * @param string $parents Optional. How to display the parents.
    130  * @param int $post_id Optional. Post ID to retrieve categories.
     129 * @param string $parents   Optional. How to display the parents.
     130 * @param int    $post_id  Optional. Post ID to retrieve categories.
    131131 * @return string
    132132 */
     
    239239 *
    240240 * @since 1.2.0
     241 * @since 2.7.0 The `$post` parameter was added.
    241242 *
    242243 * @param int|string|array $category Category ID, name or slug, or array of said.
    243  * @param int|object $post Optional. Post to check instead of the current post. (since 2.7.0)
     244 * @param int|object       $post     Optional. Post to check instead of the current post.
    244245 * @return bool True if the current post is in any of the given categories.
    245246 */
     
    259260 * @param string $separator Optional. Separator between the categories. By default, the links are placed
    260261 *                          in an unordered list. An empty string will result in the default behavior.
    261  * @param string $parents Optional. How to display the parents.
    262  * @param int $post_id Optional. Post ID to retrieve categories.
     262 * @param string $parents   Optional. How to display the parents.
     263 * @param int    $post_id  Optional. Post ID to retrieve categories.
    263264 */
    264265function the_category( $separator = '', $parents = '', $post_id = false ) {
     
    11621163 * @since 2.3.0
    11631164 *
    1164  * @param string $before Optional. Before tags.
    1165  * @param string $sep Optional. Between tags.
    1166  * @param string $after Optional. After tags.
    1167  * @param int $id Optional. Post ID. Defaults to the current post.
     1165 * @param string $before Optional. String to use before tags.
     1166 * @param string $sep    Optional. String to use between the tags.
     1167 * @param string $after  Optional. String to use after tags.
     1168 * @param int    $id    Optional. Post ID. Defaults to the current post.
    11681169 * @return string|false|WP_Error A list of tags on success, false if there are no terms, WP_Error on failure.
    11691170 */
     
    13341335 * @since 4.8.0
    13351336 *
    1336  * @param int     $term_id  Term ID.
    1337  * @param string  $taxonomy Taxonomy name.
     1337 * @param int          $term_id  Term ID.
     1338 * @param string       $taxonomy Taxonomy name.
    13381339 * @param string|array $args {
    13391340 *     Array of optional arguments.
  • trunk/src/wp-includes/category.php

    r48219 r48586  
    8282 *
    8383 * @param int|object $category Category ID or Category row object
    84  * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N,
    85  *                       which correspond to a WP_Term object, an associative array, or a numeric array,
    86  *                       respectively. Default OBJECT.
    87  * @param string $filter Optional. How to sanitize category fields. Default 'raw'.
     84 * @param string     $output  Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N,
     85 *                             which correspond to a WP_Term object, an associative array, or a numeric array,
     86 *                             respectively. Default OBJECT.
     87 * @param string     $filter  Optional. How to sanitize category fields. Default 'raw'.
    8888 * @return object|array|WP_Error|null Category data in type defined by $output parameter.
    8989 *                                    WP_Error if $category is empty, null if it does not exist.
  • trunk/src/wp-includes/class-http.php

    r48462 r48586  
    510510     * @since 3.2.0
    511511     *
    512      * @param array $args Request arguments.
    513      * @param string $url URL to Request.
     512     * @param array  $args Request arguments.
     513     * @param string $url  URL to request.
    514514     * @return string|false Class name for the first transport that claims to support the request.
    515515     *                      False if no transport claims to support the request.
     
    560560     * @see WP_Http::request()
    561561     *
    562      * @param string $url URL to Request.
    563      * @param array $args Request arguments.
     562     * @param string $url  URL to request.
     563     * @param array  $args Request arguments.
    564564     * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
    565565     *                        A WP_Error instance upon error.
     
    616616     * @since 2.7.0
    617617     *
    618      * @param string $url The request URL.
     618     * @param string       $url The request URL.
    619619     * @param string|array $args Optional. Override the defaults.
    620620     * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
     
    634634     * @since 2.7.0
    635635     *
    636      * @param string $url The request URL.
     636     * @param string       $url The request URL.
    637637     * @param string|array $args Optional. Override the defaults.
    638638     * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
     
    676676     *
    677677     * @param string|array $headers
    678      * @param string $url The URL that was requested.
     678     * @param string       $url    The URL that was requested.
    679679     * @return array Processed string headers. If duplicate headers are encountered,
    680680     *               then a numbered array is returned as the value of that header-key.
  • trunk/src/wp-includes/class-wp-comment-query.php

    r48576 r48586  
    119119     * @since 4.0.0
    120120     *
    121      * @param string   $name      Method to call.
    122      * @param array    $arguments Arguments to pass when calling.
     121     * @param string $name      Method to call.
     122     * @param array  $arguments Arguments to pass when calling.
    123123     * @return mixed|false Return value of the callback, false otherwise.
    124124     */
     
    10861086     *
    10871087     * @param string $string
    1088      * @param array $cols
     1088     * @param array  $cols
    10891089     * @return string
    10901090     */
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r48576 r48586  
    60096009     *
    60106010     * @param WP_Error $validity
    6011      * @param mixed $value
     6011     * @param mixed    $value
    60126012     * @return mixed
    60136013     */
     
    60456045     *
    60466046     * @param WP_Error $validity
    6047      * @param mixed $value
     6047     * @param mixed    $value
    60486048     * @return mixed
    60496049     */
  • trunk/src/wp-includes/class-wp-date-query.php

    r48475 r48586  
    7070     * @since 4.1.0 Introduced 'dayofweek_iso' time type parameter.
    7171     *
    72      * @param array $date_query {
     72     * @param array  $date_query {
    7373     *     Array of date query clauses.
    7474     *
     
    798798     * @since 3.7.0
    799799     *
    800      * @param string $compare The compare operator to use
    801      * @param string|array $value The value
     800     * @param string       $compare The compare operator to use.
     801     * @param string|array $value   The value.
    802802     * @return string|false|int The value to be used in SQL or false on error.
    803803     */
     
    957957     * @since 3.7.0
    958958     *
    959      * @param string $column The column to query against. Needs to be pre-validated!
    960      * @param string $compare The comparison operator. Needs to be pre-validated!
    961      * @param int|null $hour Optional. An hour value (0-23).
    962      * @param int|null $minute Optional. A minute value (0-59).
    963      * @param int|null $second Optional. A second value (0-59).
     959     * @param string   $column The column to query against. Needs to be pre-validated!
     960     * @param string   $compare The comparison operator. Needs to be pre-validated!
     961     * @param int|null $hour    Optional. An hour value (0-23).
     962     * @param int|null $minute  Optional. A minute value (0-59).
     963     * @param int|null $second  Optional. A second value (0-59).
    964964     * @return string|false A query part or false on failure.
    965965     */
  • trunk/src/wp-includes/class-wp-editor.php

    r48475 r48586  
    14501450     *
    14511451     * @param string $mce_locale The locale used for the editor.
    1452      * @param bool $json_only optional Whether to include the JavaScript calls to tinymce.addI18n() and tinymce.ScriptLoader.markDone().
     1452     * @param bool   $json_only  Optional. Whether to include the JavaScript calls to tinymce.addI18n() and
     1453     *                           tinymce.ScriptLoader.markDone().
    14531454     * @return string Translation object, JSON encoded.
    14541455     */
  • trunk/src/wp-includes/class-wp-embed.php

    r48574 r48586  
    121121     * Do not use this function directly, use wp_embed_unregister_handler() instead.
    122122     *
    123      * @param string $id The handler ID that should be removed.
    124      * @param int $priority Optional. The priority of the handler to be removed (default: 10).
     123     * @param string $id       The handler ID that should be removed.
     124     * @param int    $priority Optional. The priority of the handler to be removed (default: 10).
    125125     */
    126126    public function unregister_handler( $id, $priority = 10 ) {
     
    136136     * @since 5.5.0
    137137     *
    138      * @param array $attr {
     138     * @param array  $attr {
    139139     *     Shortcode attributes. Optional.
    140140     *
     
    182182     * will be given to the WP_oEmbed class.
    183183     *
    184      * @param array $attr {
     184     * @param array  $attr {
    185185     *     Shortcode attributes. Optional.
    186186     *
  • trunk/src/wp-includes/class-wp-error.php

    r44527 r48586  
    4848     * @since 2.1.0
    4949     *
    50      * @param string|int $code Error code
    51      * @param string $message Error message
    52      * @param mixed $data Optional. Error data.
     50     * @param string|int $code    Error code.
     51     * @param string     $message Error message.
     52     * @param mixed      $data    Optional. Error data.
    5353     */
    5454    public function __construct( $code = '', $message = '', $data = '' ) {
     
    181181     * @since 2.1.0
    182182     *
    183      * @param string|int $code Error code.
    184      * @param string $message Error message.
    185      * @param mixed $data Optional. Error data.
     183     * @param string|int $code    Error code.
     184     * @param string     $message Error message.
     185     * @param mixed      $data    Optional. Error data.
    186186     */
    187187    public function add( $code, $message, $data = '' ) {
     
    199199     * @since 2.1.0
    200200     *
    201      * @param mixed $data Error data.
     201     * @param mixed      $data Error data.
    202202     * @param string|int $code Error code.
    203203     */
  • trunk/src/wp-includes/class-wp-http-curl.php

    r47557 r48586  
    6464     * @since 2.7.0
    6565     *
    66      * @param string $url The request URL.
     66     * @param string       $url The request URL.
    6767     * @param string|array $args Optional. Override the defaults.
    6868     * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error
  • trunk/src/wp-includes/class-wp-http-ixr-client.php

    r48238 r48586  
    1414
    1515    /**
    16      * @param string $server
     16     * @param string      $server
    1717     * @param string|bool $path
    18      * @param int|bool $port
    19      * @param int $timeout
     18     * @param int|bool    $port
     19     * @param int         $timeout
    2020     */
    2121    public function __construct( $server, $path = false, $port = false, $timeout = 15 ) {
  • trunk/src/wp-includes/class-wp-http-requests-hooks.php

    r47122 r48586  
    3333     * Constructor.
    3434     *
    35      * @param string $url URL to request.
    36      * @param array $request Request data in WP_Http format.
     35     * @param string $url     URL to request.
     36     * @param array  $request Request data in WP_Http format.
    3737     */
    3838    public function __construct( $url, $request ) {
     
    4444     * Dispatch a Requests hook to a native WordPress action.
    4545     *
    46      * @param string $hook Hook name.
    47      * @param array $parameters Parameters to pass to callbacks.
     46     * @param string $hook       Hook name.
     47     * @param array  $parameters Parameters to pass to callbacks.
    4848     * @return boolean True if hooks were run, false if nothing was hooked.
    4949     */
  • trunk/src/wp-includes/class-wp-http-streams.php

    r47808 r48586  
    2323     * @since 3.7.0 Combined with the fsockopen transport and switched to stream_socket_client().
    2424     *
    25      * @param string $url The request URL.
     25     * @param string       $url The request URL.
    2626     * @param string|array $args Optional. Override the defaults.
    2727     * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error
  • trunk/src/wp-includes/class-wp-image-editor-gd.php

    r48576 r48586  
    172172
    173173    /**
    174      * @param int $max_w
    175      * @param int $max_h
     174     * @param int        $max_w
     175     * @param int        $max_h
    176176     * @param bool|array $crop
    177177     * @return resource|WP_Error
     
    416416
    417417    /**
    418      * @param resource $image
     418     * @param resource    $image
    419419     * @param string|null $filename
    420420     * @param string|null $mime_type
     
    500500     *
    501501     * @param string|stream $filename
    502      * @param callable $function
    503      * @param array $arguments
     502     * @param callable      $function
     503     * @param array         $arguments
    504504     * @return bool
    505505     */
  • trunk/src/wp-includes/class-wp-image-editor-imagick.php

    r48574 r48586  
    663663    /**
    664664     * @param Imagick $image
    665      * @param string $filename
    666      * @param string $mime_type
     665     * @param string  $filename
     666     * @param string  $mime_type
    667667     * @return array|WP_Error
    668668     */
  • trunk/src/wp-includes/class-wp-image-editor.php

    r48574 r48586  
    474474     *
    475475     * @param string|stream $filename
    476      * @param callable $function
    477      * @param array $arguments
     476     * @param callable      $function
     477     * @param array         $arguments
    478478     * @return bool
    479479     */
  • trunk/src/wp-includes/class-wp-oembed.php

    r48513 r48586  
    230230     * @since 4.0.0
    231231     *
    232      * @param string   $name      Method to call.
    233      * @param array    $arguments Arguments to pass when calling.
     232     * @param string $name      Method to call.
     233     * @param array  $arguments Arguments to pass when calling.
    234234     * @return mixed|bool Return value of the callback, false otherwise.
    235235     */
     
    248248     * @see WP_oEmbed::discover()
    249249     *
    250      * @param string        $url  The URL to the content.
    251      * @param string|array  $args Optional provider arguments.
     250     * @param string       $url  The URL to the content.
     251     * @param string|array $args Optional provider arguments.
    252252     * @return string|false The oEmbed provider URL on success, false on failure.
    253253     */
  • trunk/src/wp-includes/class-wp-query.php

    r48576 r48586  
    35943594     * @since 4.0.0
    35953595     *
    3596      * @param string   $name      Method to call.
    3597      * @param array    $arguments Arguments to pass when calling.
     3596     * @param string $name      Method to call.
     3597     * @param array  $arguments Arguments to pass when calling.
    35983598     * @return mixed|false Return value of the callback, false otherwise.
    35993599     */
  • trunk/src/wp-includes/class-wp-recovery-mode.php

    r48102 r48586  
    340340     * @global array $wp_theme_directories
    341341     *
    342      * @param array  $error Error that was triggered.
     342     * @param array $error Error that was triggered.
    343343     * @return array|false {
    344344     *      @type string  $slug  The extension slug. This is the plugin or theme's directory.
  • trunk/src/wp-includes/class-wp-roles.php

    r48197 r48586  
    9696     * @since 4.0.0
    9797     *
    98      * @param string   $name      Method to call.
    99      * @param array    $arguments Arguments to pass when calling.
     98     * @param string $name      Method to call.
     99     * @param array  $arguments Arguments to pass when calling.
    100100     * @return mixed|false Return value of the callback, false otherwise.
    101101     */
     
    201201     * @since 2.0.0
    202202     *
    203      * @param string $role Role name.
    204      * @param string $cap  Capability name.
    205      * @param bool $grant Optional. Whether role is capable of performing capability.
    206      *                     Default true.
     203     * @param string $role  Role name.
     204     * @param string $cap   Capability name.
     205     * @param bool   $grant Optional. Whether role is capable of performing capability.
     206     *                      Default true.
    207207     */
    208208    public function add_cap( $role, $cap, $grant = true ) {
  • trunk/src/wp-includes/class-wp-term-query.php

    r48576 r48586  
    698698         *                             or null to allow WP queries to run normally.
    699699         * @param WP_Term_Query $this  The WP_Term_Query instance, passed by reference.
    700          *
    701700         */
    702701        $this->terms = apply_filters_ref_array( 'terms_pre_query', array( $this->terms, &$this ) );
  • trunk/src/wp-includes/class-wp-text-diff-renderer-table.php

    r48576 r48586  
    101101     * @ignore
    102102     *
    103      * @param array $lines
     103     * @param array  $lines
    104104     * @param string $prefix
    105105     */
     
    151151     *
    152152     * @param array $lines
    153      * @param bool $encode
     153     * @param bool  $encode
    154154     * @return string
    155155     */
     
    189189     *
    190190     * @param array $lines
    191      * @param bool $encode
     191     * @param bool  $encode
    192192     * @return string
    193193     */
     
    214214     *
    215215     * @param array $lines
    216      * @param bool $encode
     216     * @param bool  $encode
    217217     * @return string
    218218     */
Note: See TracChangeset for help on using the changeset viewer.