Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/04/2017 06:26:55 PM (8 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-activity/bp-activity-functions.php

    r11399 r11447  
    18461846 *     @type string   $error_type        Optional. Error type. Either 'bool' or 'wp_error'. Default: 'bool'.
    18471847 * }
    1848  * @return int|bool The ID of the activity on success. False on error.
     1848 * @return WP_Error|bool|int The ID of the activity on success. False on error.
    18491849 */
    18501850function bp_activity_add( $args = '' ) {
     
    20272027 * @param WP_Post|null $post    Post object.
    20282028 * @param int          $user_id ID of the post author.
    2029  * @return int|bool The ID of the activity on success. False on error.
     2029 * @return null|WP_Error|bool|int The ID of the activity on success. False on error.
    20302030 */
    20312031function bp_activity_post_type_publish( $post_id = 0, $post = null, $user_id = 0 ) {
     
    21622162 *
    21632163 * @param WP_Post|null $post Post item.
    2164  * @return bool True on success, false on failure.
     2164 * @return null|WP_Error|bool True on success, false on failure.
    21652165 */
    21662166function bp_activity_post_type_update( $post = null ) {
     
    22842284 * @param  bool        $is_approved          Whether the comment is approved or not.
    22852285 * @param  object|null $activity_post_object The post type tracking args object.
    2286  * @return int|bool The ID of the activity on success. False on error.
     2286 * @return null|WP_Error|bool|int The ID of the activity on success. False on error.
    22872287 */
    22882288function bp_activity_post_type_comment( $comment_id = 0, $is_approved = true, $activity_post_object = null ) {
     
    25582558 *     @type string $error_type        Optional. Error type. Either 'bool' or 'wp_error'. Default: 'bool'.
    25592559 * }
    2560  * @return int|bool The ID of the comment on success, otherwise false.
     2560 * @return WP_Error|bool|int The ID of the comment on success, otherwise false.
    25612561 */
    25622562function bp_activity_new_comment( $args = '' ) {
Note: See TracChangeset for help on using the changeset viewer.