Skip to:
Content

BuddyPress.org

Changeset 9530


Ignore:
Timestamp:
02/22/2015 11:37:42 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Scrutinizer: Improve PHPDoc type hints for bp_activity_can_comment_reply() and bp_activity_current_comment() usages. See #5891.

File:
1 edited

Legend:

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

    r9522 r9530  
    22712271    global $activities_template;
    22722272
    2273     $current_comment = !empty( $activities_template->activity->current_comment ) ? $activities_template->activity->current_comment : false;
     2273    $current_comment = !empty( $activities_template->activity->current_comment )
     2274        ? $activities_template->activity->current_comment
     2275        : false;
    22742276
    22752277    /**
     
    33713373 * @since BuddyPress (1.5.0)
    33723374 *
    3373  * @param object $comment Activity comment.
    3374  * @return bool $can_comment True if comment can receive comments, otherwise
    3375  *         false.
    3376  */
    3377 function bp_activity_can_comment_reply( $comment = '' ) {
     3375 * @param  bool|object $comment    Activity comment.
     3376 * @return bool        $can_comment True if comment can receive comments,
     3377 *                                  otherwise false.
     3378 */
     3379function bp_activity_can_comment_reply( $comment = false ) {
    33783380
    33793381    // Assume activity can be commented on
Note: See TracChangeset for help on using the changeset viewer.