Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/04/2017 06:26:55 PM (3 years ago)
Author:
tw2113
Message:

Cleanup from recent Scrutinizer review around documentation and param/return types.

File:
1 edited

Legend:

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

    r11091 r11447  
    1919 * @since 1.1.0
    2020 *
    21  * @return bool|null False on failure.
     21 * @return false|null False on failure.
    2222 */
    2323function groups_register_activity_actions() {
     
    338338 *                                 public, otherwise false.
    339339 * }
    340  * @return bool See {@link bp_activity_add()}.
     340 * @return WP_Error|bool|int See {@link bp_activity_add()}.
    341341 */
    342342function groups_record_activity( $args = '' ) {
     
    385385 * @param int $group_id Optional. The ID of the group whose last_activity is
    386386 *                      being updated. Default: the current group's ID.
    387  * @return bool|null False on failure.
     387 * @return false|null False on failure.
    388388 */
    389389function groups_update_last_activity( $group_id = 0 ) {
     
    412412 * @param int $user_id  ID of the user joining the group.
    413413 * @param int $group_id ID of the group.
    414  * @return bool|null False on failure.
     414 * @return false|null False on failure.
    415415 */
    416416function bp_groups_membership_accepted_add_activity( $user_id, $group_id ) {
     
    453453 * @param  BP_Groups_Group $old_group      Group object before the details had been changed.
    454454 * @param  bool            $notify_members True if the admin has opted to notify group members, otherwise false.
    455  * @return int|bool The ID of the activity on success. False on error.
     455 * @return null|WP_Error|bool|int The ID of the activity on success. False on error.
    456456 */
    457457function bp_groups_group_details_updated_add_activity( $group_id, $old_group, $notify_members ) {
Note: See TracChangeset for help on using the changeset viewer.