Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 01:06:10 AM (6 months ago)
Author:
espellcaste
Message:

PHPDoc: remove superfluous comments from boolean returns.

See #9164

File:
1 edited

Legend:

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

    r13878 r13890  
    10821082 * @param int $activity_id ID of the activity item being favorited.
    10831083 * @param int $user_id     ID of the user favoriting the activity item.
    1084  * @return bool True on success, false on failure.
     1084 * @return bool
    10851085 */
    10861086function bp_activity_add_user_favorite( $activity_id, $user_id = 0 ) {
     
    11631163 * @param int $activity_id ID of the activity item being unfavorited.
    11641164 * @param int $user_id     ID of the user unfavoriting the activity item.
    1165  * @return bool True on success, false on failure.
     1165 * @return bool
    11661166 */
    11671167function bp_activity_remove_user_favorite( $activity_id, $user_id = 0 ) {
     
    12971297 *                            only delete matching metadata entries for the specified
    12981298 *                            activity item. Default: false.
    1299  * @return bool True on success, false on failure.
     1299 * @return bool
    13001300 */
    13011301function bp_activity_delete_meta( $activity_id, $meta_key = '', $meta_value = '', $delete_all = false ) {
     
    24652465 * @param int          $post_id ID of the post being unpublished.
    24662466 * @param WP_Post|null $post    Post object.
    2467  * @return bool True on success, false on failure.
     2467 * @return bool
    24682468 */
    24692469function bp_activity_post_type_unpublish( $post_id = 0, $post = null ) {
     
    27072707 * @param  int         $comment_id           ID of the comment.
    27082708 * @param  object|null $activity_post_object The post type tracking args object.
    2709  * @return bool True on success. False on error.
     2709 * @return bool
    27102710 */
    27112711function bp_activity_post_type_remove_comment( $comment_id = 0, $activity_post_object = null ) {
     
    27132713        $comment = get_comment( $comment_id );
    27142714        if ( ! $comment ) {
    2715             return;
     2715            return false;
    27162716        }
    27172717
    27182718        $post_type = get_post_type( $comment->comment_post_ID );
    27192719        if ( ! $post_type ) {
    2720             return;
     2720            return false;
    27212721        }
    27222722
     
    30043004 *                           the same as BP_Activity_Activity::get().
    30053005 *                           See that method for a description.
    3006  * @return bool True on success, false on failure.
     3006 * @return bool
    30073007 */
    30083008function bp_activity_delete( $args = '' ) {
     
    30883088     * @param array|string $args See BP_Activity_Activity::get for a
    30893089     *                           description of accepted arguments.
    3090      * @return bool True on success, false on failure.
     3090     * @return bool
    30913091     */
    30923092    function bp_activity_delete_by_item_id( $args = '' ) {
     
    31133113     *
    31143114     * @param int $activity_id ID of the activity item to be deleted.
    3115      * @return bool True on success, false on failure.
     3115     * @return bool
    31163116     */
    31173117    function bp_activity_delete_by_activity_id( $activity_id ) {
     
    31323132     * @param string $component The activity component.
    31333133     * @param string $type      The activity type.
    3134      * @return bool True on success, false on failure.
     3134     * @return bool
    31353135     */
    31363136    function bp_activity_delete_by_content( $user_id, $content, $component, $type ) {
     
    31543154     * @param int    $user_id   The user id.
    31553155     * @param string $component The activity component.
    3156      * @return bool True on success, false on failure.
     3156     * @return bool
    31573157     */
    31583158    function bp_activity_delete_for_user_by_component( $user_id, $component ) {
     
    31763176 *                         oldest ancestor.
    31773177 * @param int $comment_id  The ID of the comment to be deleted.
    3178  * @return bool True on success, false on failure.
     3178 * @return bool
    31793179 */
    31803180function bp_activity_delete_comment( $activity_id, $comment_id ) {
     
    33403340 * @param  BP_Activity_Activity $activity Activity object.
    33413341 * @param  integer              $user_id  User ID.
    3342  * @return boolean True on success, false on failure.
     3342 * @return bool
    33433343 */
    33443344function bp_activity_user_can_read( $activity, $user_id = 0 ) {
     
    34013401 *
    34023402 * @param int $user_id The ID of the user whose activity is being hidden.
    3403  * @return bool True on success, false on failure.
     3403 * @return bool
    34043404 */
    34053405function bp_activity_hide_user_activity( $user_id ) {
Note: See TracChangeset for help on using the changeset viewer.