Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/12/2018 08:52:21 PM (8 years ago)
Author:
djpaul
Message:

Templates, Nouveau: function argument indentation tweaks, and minor code standards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/activity/functions.php

    r11855 r11856  
    155155
    156156        if ( bp_is_group() ) {
    157                 $activity_params = array_merge( $activity_params,
    158                         array( 'object' => 'group', 'item_id' => bp_get_current_group_id() )
     157                $activity_params = array_merge(
     158                        $activity_params,
     159                        array(
     160                                'object'  => 'group',
     161                                'item_id' => bp_get_current_group_id(),
     162                        )
    159163                );
    160164        }
     
    186190        // deprecated hooks
    187191        $deprecated_hooks = array(
    188                 array( 'bp_before_activity_type_tab_all', 'activity',  0 ),
    189                 array( 'bp_activity_type_tabs',           'activity', 46 ),
     192                array( 'bp_before_activity_type_tab_all', 'activity', 0 ),
     193                array( 'bp_activity_type_tabs', 'activity', 46 ),
    190194        );
    191195
     
    194198                        $deprecated_hooks,
    195199                        array(
    196                                 array( 'bp_before_activity_type_tab_friends',   'activity', 6 ),
    197                                 array( 'bp_before_activity_type_tab_groups',    'activity', 16 ),
     200                                array( 'bp_before_activity_type_tab_friends', 'activity', 6 ),
     201                                array( 'bp_before_activity_type_tab_groups', 'activity', 16 ),
    198202                                array( 'bp_before_activity_type_tab_favorites', 'activity', 26 ),
    199                 ) );
    200 
     203                        )
     204                );
    201205
    202206                // If the user has favorite create a nav item
     
    293297 */
    294298function bp_nouveau_get_activity_filters_array( $output = '', $filters = array(), $context = '' ) {
    295         return array( 'filters' => $filters, 'context' => $context );
     299        return array(
     300                'filters' => $filters,
     301                'context' => $context,
     302        );
    296303}
    297304
     
    333340function bp_nouveau_activity_secondary_avatars( $action, $activity ) {
    334341        switch ( $activity->component ) {
    335                 case 'groups' :
    336                 case 'friends' :
     342                case 'groups':
     343                case 'friends':
    337344                        // Only insert avatar if one exists.
    338345                        if ( $secondary_avatar = bp_get_activity_secondary_avatar() ) {
Note: See TracChangeset for help on using the changeset viewer.