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-friends/bp-friends-activity.php

    r5712 r5729  
    8383
    8484            // Set up the string and the filter
    85             if ( (int)$total_items > 1 ) {
    86                 $text = sprintf( __( '%d friends accepted your friendship requests', 'buddypress' ), (int)$total_items );
     85            if ( (int) $total_items > 1 ) {
     86                $text = sprintf( __( '%d friends accepted your friendship requests', 'buddypress' ), (int) $total_items );
    8787                $filter = 'bp_friends_multiple_friendship_accepted_notification';
    8888            } else {
     
    9797
    9898            // Set up the string and the filter
    99             if ( (int)$total_items > 1 ) {
    100                 $text = sprintf( __( 'You have %d pending friendship requests', 'buddypress' ), (int)$total_items );
     99            if ( (int) $total_items > 1 ) {
     100                $text = sprintf( __( 'You have %d pending friendship requests', 'buddypress' ), (int) $total_items );
    101101                $filter = 'bp_friends_multiple_friendship_request_notification';
    102102            } else {
     
    110110    // Return either an HTML link or an array, depending on the requested format
    111111    if ( 'string' == $format ) {
    112         $return = apply_filters( $filter, '<a href="' . $link . '">' . $text . '</a>', (int)$total_items );
     112        $return = apply_filters( $filter, '<a href="' . $link . '">' . $text . '</a>', (int) $total_items );
    113113    } else {
    114114        $return = apply_filters( $filter, array(
Note: See TracChangeset for help on using the changeset viewer.