Skip to:
Content

BuddyPress.org

Ticket #8180: coding-standard.patch

File coding-standard.patch, 1.5 KB (added by passoniate, 22 months ago)
  • src/bp-activity/actions/post.php

     
    6666                $activity_id = bp_activity_post_update( array( 'content' => $content ) );
    6767
    6868        // Post to groups object.
    69         } elseif ( 'groups' == $object && bp_is_active( 'groups' ) ) {
     69        } elseif ( 'groups' === $object && bp_is_active( 'groups' ) ) {
    7070                if ( (int) $item_id ) {
    7171                        $activity_id = groups_post_update( array( 'content' => $content, 'group_id' => $item_id ) );
    7272                }
  • src/bp-activity/bp-activity-notifications.php

     
    7676                break;
    7777        }
    7878
    79         if ( 'string' == $format ) {
     79        if ( 'string' === $format ) {
    8080
    8181                /**
    8282                 * Filters the activity notification for the string format.
  • src/bp-core/admin/bp-core-admin-functions.php

     
    10391039        $mode    = isset( $_POST['mode'] ) ? $_POST['mode'] : false;
    10401040
    10411041        // If this is a multisite, bulk request, stop now!
    1042         if ( 'list' == $mode ) {
     1042        if ( 'list' === $mode ) {
    10431043                return;
    10441044        }
    10451045