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-classes.php

    r5709 r5729  
    133133            return 0;
    134134
    135         bp_update_user_meta( $user_id, 'total_friend_count', (int)$count );
     135        bp_update_user_meta( $user_id, 'total_friend_count', (int) $count );
    136136        return (int) $count;
    137137    }
     
    174174            return false;
    175175
    176         return array( 'friends' => $filtered_friend_ids, 'total' => (int)$total_friend_ids );
     176        return array( 'friends' => $filtered_friend_ids, 'total' => (int) $total_friend_ids );
    177177    }
    178178
     
    336336
    337337        // Loop through friend_ids and update their counts
    338         foreach ( (array)$friend_ids as $friend_id ) {
     338        foreach ( (array) $friend_ids as $friend_id ) {
    339339            BP_Friends_Friendship::total_friend_count( $friend_id );
    340340        }
Note: See TracChangeset for help on using the changeset viewer.