Skip to:
Content

BuddyPress.org

Changeset 10160


Ignore:
Timestamp:
09/30/2015 11:42:33 AM (5 years ago)
Author:
djpaul
Message:

Code Standards: fix space indentations

Location:
trunk/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-template.php

    r10110 r10160  
    29262926         * @param string $link The activity thread permalink.
    29272927         */
    2928         return apply_filters( 'bp_get_activity_thread_permalink', $link );
     2928        return apply_filters( 'bp_get_activity_thread_permalink', $link );
    29292929    }
    29302930
  • trunk/src/bp-core/bp-core-admin.php

    r10152 r10160  
    320320        // Hide toolbar for logged out users setting
    321321        add_settings_field( 'hide-loggedout-adminbar', __( 'Toolbar', 'buddypress' ), 'bp_admin_setting_callback_admin_bar', 'buddypress', 'bp_main' );
    322         register_setting( 'buddypress', 'hide-loggedout-adminbar', 'intval' );
     322        register_setting( 'buddypress', 'hide-loggedout-adminbar', 'intval' );
    323323
    324324        // Only show 'switch to Toolbar' option if the user chose to retain the BuddyBar during the 1.6 upgrade
    325325        if ( (bool) bp_get_option( '_bp_force_buddybar', false ) ) {
    326326            add_settings_field( '_bp_force_buddybar', __( 'Toolbar', 'buddypress' ), 'bp_admin_setting_callback_force_buddybar', 'buddypress', 'bp_main' );
    327             register_setting( 'buddypress', '_bp_force_buddybar', 'bp_admin_sanitize_callback_force_buddybar' );
     327            register_setting( 'buddypress', '_bp_force_buddybar', 'bp_admin_sanitize_callback_force_buddybar' );
    328328        }
    329329
    330330        // Allow account deletion
    331331        add_settings_field( 'bp-disable-account-deletion', __( 'Account Deletion', 'buddypress' ), 'bp_admin_setting_callback_account_deletion', 'buddypress', 'bp_main' );
    332         register_setting( 'buddypress', 'bp-disable-account-deletion', 'intval' );
     332        register_setting( 'buddypress', 'bp-disable-account-deletion', 'intval' );
    333333
    334334        /** XProfile Section **************************************************/
  • trunk/src/bp-core/classes/class-bp-media-extractor.php

    r10108 r10160  
    469469        // Match any registered WordPress shortcodes.
    470470        if ( strpos( $richtext, '[' ) !== false ) {
    471             preg_match_all( '/' . get_shortcode_regex() . '/s', $richtext, $matches );
     471            preg_match_all( '/' . get_shortcode_regex() . '/s', $richtext, $matches );
    472472
    473473            if ( ! empty( $matches[2] ) ) {
  • trunk/src/bp-core/js/avatar.js

    r10017 r10160  
    183183
    184184            // Display it
    185             avatarStatus.inject( '.bp-avatar-status' );
     185            avatarStatus.inject( '.bp-avatar-status' );
    186186        },
    187187
  • trunk/src/bp-core/js/cover-image.js

    r10155 r10160  
    5858
    5959            // Display it
    60             coverImageUploadProgress.inject( '.bp-cover-image-status' );
     60            coverImageUploadProgress.inject( '.bp-cover-image-status' );
    6161        },
    6262
  • trunk/src/bp-friends/classes/class-bp-friends-friendship.php

    r10147 r10160  
    448448        $bp = buddypress();
    449449
    450         return $wpdb->query( $wpdb->prepare( "UPDATE {$bp->friends->table_name} SET is_confirmed = 1, date_created = %s WHERE id = %d AND friend_user_id = %d", bp_core_current_time(), $friendship_id, bp_loggedin_user_id() ) );
     450        return $wpdb->query( $wpdb->prepare( "UPDATE {$bp->friends->table_name} SET is_confirmed = 1, date_created = %s WHERE id = %d AND friend_user_id = %d", bp_core_current_time(), $friendship_id, bp_loggedin_user_id() ) );
    451451    }
    452452
  • trunk/src/bp-groups/bp-groups-actions.php

    r10148 r10160  
    429429        $group_admins = groups_get_group_admins( bp_get_current_group_id() );
    430430
    431         if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == bp_loggedin_user_id() ) {
     431        if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == bp_loggedin_user_id() ) {
    432432            bp_core_add_message( __( 'This group must have at least one admin', 'buddypress' ), 'error' );
    433433        } elseif ( ! groups_leave_group( $bp->groups->current_group->id ) ) {
  • trunk/src/bp-groups/bp-groups-template.php

    r10158 r10160  
    33563356
    33573357            // Stop sole admins from abandoning their group
    3358             $group_admins = groups_get_group_admins( $group->id );
    3359             if ( ( 1 == count( $group_admins ) ) && ( bp_loggedin_user_id() === (int) $group_admins[0]->user_id ) ) {
     3358            $group_admins = groups_get_group_admins( $group->id );
     3359            if ( ( 1 == count( $group_admins ) ) && ( bp_loggedin_user_id() === (int) $group_admins[0]->user_id ) ) {
    33603360                return false;
    33613361            }
     
    34573457         *
    34583458         * @since 1.2.6
    3459          * @since 2.4.0 Added $group parameter to filter args.
     3459         * @since 2.4.0 Added $group parameter to filter args.
    34603460         *
    34613461         * @param string $button HTML button for joining a group.
  • trunk/src/bp-templates/bp-legacy/css/twentythirteen.scss

    r10155 r10160  
    17721772
    17731773                    img {
    1774                     // this is the tiny user avatar
     1774                        // this is the tiny user avatar
    17751775                        display: inline;
    17761776                        height: 20px;
    17771777                        margin-right: 0.5em;
    17781778                        width: 20px !important; // override inline style
    1779                 }
    1780             }
    1781         }
     1779                    }
     1780                }
     1781            }
    17821782        }
    17831783
     
    19601960                text-transform: none;
    19611961                width: 20%;
    1962             }
     1962            }
    19631963        } // close form
    19641964
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r10142 r10160  
    384384
    385385            // Recreate type_obj in case someone changed $this->type via a filter
    386             $this->type_obj            = bp_xprofile_create_field_type( $this->type );
    387             $this->type_obj->field_obj = $this;
     386            $this->type_obj            = bp_xprofile_create_field_type( $this->type );
     387            $this->type_obj->field_obj = $this;
    388388
    389389            return $this->id;
Note: See TracChangeset for help on using the changeset viewer.