Skip to:
Content

BuddyPress.org

Changeset 10426


Ignore:
Timestamp:
12/22/2015 05:42:32 AM (9 years ago)
Author:
tw2113
Message:

Scrutinizr feedback cleanup.

See #6397.

Location:
trunk/src/bp-blogs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-functions.php

    r10417 r10426  
    12781278 * @see BP_Blogs_Blog::get_all() for a description of parameters and return values.
    12791279 *
    1280  * @param int $limit See {@BP_Blogs_Blog::get_all()}.
    1281  * @param int $page  See {@BP_Blogs_Blog::get_all()}.
     1280 * @param int|null $limit See {@BP_Blogs_Blog::get_all()}.
     1281 * @param int|null $page  See {@BP_Blogs_Blog::get_all()}.
    12821282 * @return array See {@BP_Blogs_Blog::get_all()}.
    12831283 */
     
    12911291 * @see BP_Blogs_Blog::get() for a description of parameters and return values.
    12921292 *
    1293  * @param int $limit See {@BP_Blogs_Blog::get()}.
    1294  * @param int $page  See {@BP_Blogs_Blog::get()}.
     1293 * @param int|null $limit See {@BP_Blogs_Blog::get()}.
     1294 * @param int|null $page  See {@BP_Blogs_Blog::get()}.
    12951295 * @return array See {@BP_Blogs_Blog::get()}.
    12961296 */
  • trunk/src/bp-blogs/classes/class-bp-blogs-blog.php

    r10417 r10426  
    4545     * Constructor method.
    4646     *
    47      * @param int $id Optional. The ID of the blog.
     47     * @param int|null $id Optional. The ID of the blog.
    4848     */
    4949    public function __construct( $id = null ) {
     
    270270     * Delete the record of a given blog for a specific user.
    271271     *
    272      * @param int $blog_id The blog being removed.
    273      * @param int $user_id Optional. The ID of the user from whom the blog is
    274      *                     being removed. If absent, defaults to the logged-in user ID.
     272     * @param int      $blog_id The blog being removed.
     273     * @param int|null $user_id Optional. The ID of the user from whom the blog is
     274     *                          being removed. If absent, defaults to the logged-in user ID.
    275275     * @return int|bool Number of rows deleted on success, false on failure.
    276276     */
     
    289289     * Delete all of a user's blog associations in the BP tables.
    290290     *
    291      * @param int $user_id Optional. The ID of the user whose blog associations
    292      *                     are being deleted. If absent, defaults to logged-in user ID.
     291     * @param int|null $user_id Optional. The ID of the user whose blog associations
     292     *                          are being deleted. If absent, defaults to logged-in user ID.
    293293     * @return int|bool Number of rows deleted on success, false on failure.
    294294     */
     
    390390     * cap.
    391391     *
    392      * @param int $user_id Optional. ID of the user whose blogs are being
    393      *                     queried. Defaults to logged-in user.
     392     * @param int|null $user_id Optional. ID of the user whose blogs are being
     393     *                          queried. Defaults to logged-in user.
    394394     * @return int Blog count for the user.
    395395     */
     
    416416     * blogmeta table.
    417417     *
    418      * @param string $filter The search term.
    419      * @param int    $limit  Optional. The maximum number of items to return.
    420      *                       Default: null (no limit).
    421      * @param int    $page   Optional. The page of results to return. Default:
    422      *                       null (no limit).
     418     * @param string   $filter The search term.
     419     * @param int|null $limit  Optional. The maximum number of items to return.
     420     *                         Default: null (no limit).
     421     * @param int|null $page   Optional. The page of results to return. Default:
     422     *                         null (no limit).
    423423     * @return array Multidimensional results array, structured as follows:
    424424     *               'blogs' - Array of located blog objects.
     
    454454     * 'bp_moderate' cap.
    455455     *
    456      * @param int $limit Optional. The maximum number of items to return.
    457      *                   Default: null (no limit).
    458      * @param int $page  Optional. The page of results to return. Default:
    459      *                   null (no limit).
     456     * @param int|null $limit Optional. The maximum number of items to return.
     457     *                        Default: null (no limit).
     458     * @param int|null $page  Optional. The page of results to return. Default:
     459     *                        null (no limit).
    460460     * @return array Multidimensional results array, structured as follows:
    461461     *               'blogs' - Array of located blog objects.
     
    482482     * 'bp_moderate' cap.
    483483     *
    484      * @param string $letter The letter you're looking for.
    485      * @param int    $limit  Optional. The maximum number of items to return.
    486      *                       Default: null (no limit).
    487      * @param int    $page   Optional. The page of results to return. Default:
    488      *                       null (no limit).
     484     * @param string   $letter The letter you're looking for.
     485     * @param int|null $limit  Optional. The maximum number of items to return.
     486     *                         Default: null (no limit).
     487     * @param int|null $page   Optional. The page of results to return. Default:
     488     *                         null (no limit).
    489489     * @return array Multidimensional results array, structured as follows:
    490490     *               'blogs' - Array of located blog objects.
Note: See TracChangeset for help on using the changeset viewer.