Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 09:32:04 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Breathing room for cast variables.

File:
1 edited

Legend:

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

    r5714 r5729  
    9090            // Because different values are passed to the filters, we'll return the
    9191            // values inline
    92             if ( (int)$total_items > 1 ) {
    93                 $text = sprintf( __( '%1$d new membership requests for the group "%2$s"', 'buddypress' ), (int)$total_items, $group->name );
     92            if ( (int) $total_items > 1 ) {
     93                $text = sprintf( __( '%1$d new membership requests for the group "%2$s"', 'buddypress' ), (int) $total_items, $group->name );
    9494                $filter = 'bp_groups_multiple_new_membership_requests_notification';
    9595                $notification_link = $group_link . 'admin/membership-requests/?n=1';
     
    127127            $group_link = bp_get_group_permalink( $group );
    128128
    129             if ( (int)$total_items > 1 ) {
    130                 $text = sprintf( __( '%d accepted group membership requests', 'buddypress' ), (int)$total_items, $group->name );
     129            if ( (int) $total_items > 1 ) {
     130                $text = sprintf( __( '%d accepted group membership requests', 'buddypress' ), (int) $total_items, $group->name );
    131131                $filter = 'bp_groups_multiple_membership_request_accepted_notification';
    132132                $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1';
     
    163163            $group_link = bp_get_group_permalink( $group );
    164164
    165             if ( (int)$total_items > 1 ) {
    166                 $text = sprintf( __( '%d rejected group membership requests', 'buddypress' ), (int)$total_items, $group->name );
     165            if ( (int) $total_items > 1 ) {
     166                $text = sprintf( __( '%d rejected group membership requests', 'buddypress' ), (int) $total_items, $group->name );
    167167                $filter = 'bp_groups_multiple_membership_request_rejected_notification';
    168168                $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1';
     
    199199            $group_link = bp_get_group_permalink( $group );
    200200
    201             if ( (int)$total_items > 1 ) {
    202                 $text = sprintf( __( 'You were promoted to an admin in %d groups', 'buddypress' ), (int)$total_items );
     201            if ( (int) $total_items > 1 ) {
     202                $text = sprintf( __( 'You were promoted to an admin in %d groups', 'buddypress' ), (int) $total_items );
    203203                $filter = 'bp_groups_multiple_member_promoted_to_admin_notification';
    204204                $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1';
     
    235235            $group_link = bp_get_group_permalink( $group );
    236236
    237             if ( (int)$total_items > 1 ) {
    238                 $text = sprintf( __( 'You were promoted to a mod in %d groups', 'buddypress' ), (int)$total_items );
     237            if ( (int) $total_items > 1 ) {
     238                $text = sprintf( __( 'You were promoted to a mod in %d groups', 'buddypress' ), (int) $total_items );
    239239                $filter = 'bp_groups_multiple_member_promoted_to_mod_notification';
    240240                $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1';
     
    272272            $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/invites/?n=1';
    273273
    274             if ( (int)$total_items > 1 ) {
    275                 $text = sprintf( __( 'You have %d new group invitations', 'buddypress' ), (int)$total_items );
     274            if ( (int) $total_items > 1 ) {
     275                $text = sprintf( __( 'You have %d new group invitations', 'buddypress' ), (int) $total_items );
    276276                $filter = 'bp_groups_multiple_group_invite_notification';
    277277
Note: See TracChangeset for help on using the changeset viewer.