Skip to:
Content

BuddyPress.org

Changeset 11032


Ignore:
Timestamp:
08/24/2016 11:25:28 AM (10 years ago)
Author:
djpaul
Message:

Fix indentation across all components.

Props Scrutinizer-CI

See #5891

Location:
trunk/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-actions.php

    r10981 r11032  
    3030 *
    3131 *           v--WordPress Actions       v--BuddyPress Sub-actions
    32   */
     32 */
    3333add_action( 'plugins_loaded',          'bp_loaded',                 10    );
    3434add_action( 'init',                    'bp_init',                   10    );
  • trunk/src/bp-core/bp-core-admin.php

    r10825 r11032  
    3131        _n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases', 'buddypress' );
    3232
    33         /* translators: 1: WordPress version number. */
    34         _n_noop( '<strong>Version %1$s</strong> addressed a security issue.',
    35                  '<strong>Version %1$s</strong> addressed some security issues.',
    36                  'buddypress' );
     33        /* translators: 1: BuddyPress version number. */
     34        _n_noop(
     35                '<strong>Version %1$s</strong> addressed a security issue.',
     36                '<strong>Version %1$s</strong> addressed some security issues.',
     37                'buddypress'
     38        );
    3739
    38         /* translators: 1: WordPress version number, 2: plural number of bugs. */
    39         _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
    40                  '<strong>Version %1$s</strong> addressed %2$s bugs.',
    41                  'buddypress' );
     40        /* translators: 1: BuddyPress version number, 2: plural number of bugs. */
     41        _n_noop(
     42                '<strong>Version %1$s</strong> addressed %2$s bug.',
     43                '<strong>Version %1$s</strong> addressed %2$s bugs.',
     44                'buddypress'
     45        );
    4246
    43         /* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
    44         _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
    45                  '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
    46                  'buddypress' );
     47        /* translators: 1: BuddyPress version number, 2: plural number of bugs. Singular security issue. */
     48        _n_noop(
     49                '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
     50                '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
     51                'buddypress'
     52        );
    4753
    48         /* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
    49         _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
    50                  '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
    51                  'buddypress' );
     54        /* translators: 1: BuddyPress version number, 2: plural number of bugs. More than one security issue. */
     55        _n_noop(
     56                '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
     57                '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
     58                'buddypress'
     59        );
    5260
    5361        __( 'For more information, see <a href="%s">the release notes</a>.', 'buddypress' );
  • trunk/src/bp-core/bp-core-buddybar.php

    r10980 r11032  
    215215
    216216        /**
    217         * If this is for site admins only and the user is not one,
    218         * don't register this screen function.
    219         */
     217         * If this is for site admins only and the user is not one,
     218         * don't register this screen function.
     219         */
    220220        if ( ! empty( $r['site_admin_only'] ) && ! bp_current_user_can( 'bp_moderate' ) ) {
    221221                return false;
  • trunk/src/bp-core/bp-core-filters.php

    r11010 r11032  
    179179                // Handles the majority of components.
    180180                if ( bp_is_current_component( $component ) ) {
    181                         $page_id = (int) $bp_page->id;
     181                        $page_id = (int) $bp_page->id;
    182182                }
    183183
     
    10521052                        $tokens['recipient.username'] = $user_obj->user_login;
    10531053                        if ( bp_is_active( 'settings' ) && empty( $tokens['unsubscribe'] ) ) {
    1054                             $tokens['unsubscribe'] = esc_url( sprintf(
    1055                                 '%s%s/notifications/',
    1056                                 bp_core_get_user_domain( $user_obj->ID ),
    1057                                 bp_get_settings_slug()
    1058                             ) );
     1054                                $tokens['unsubscribe'] = esc_url( sprintf(
     1055                                        '%s%s/notifications/',
     1056                                        bp_core_get_user_domain( $user_obj->ID ),
     1057                                        bp_get_settings_slug()
     1058                                ) );
    10591059                        }
    1060                 }
     1060                }
    10611061        }
    10621062
  • trunk/src/bp-core/classes/class-bp-theme-compat.php

    r10528 r11032  
    5151         * @param array $properties Array of properties for BP_Theme_Compat.
    5252         */
    53         public function __construct( Array $properties = array() ) {
     53        public function __construct( Array $properties = array() ) {
    5454                $this->_data = $properties;
    5555        }
  • trunk/src/bp-forums/bp-forums-bbpress-sa.php

    r10957 r11032  
    284284                        if ( 4 == func_num_args() ) {
    285285                                $args = array(
    286                                                 'user'     => $args,
    287                                                 'password' => func_get_arg( 1 ),
    288                                                 'name'     => func_get_arg( 2 ),
    289                                                 'host'     => func_get_arg( 3 ),
    290                                                 'charset'  => defined( 'BBDB_CHARSET' ) ? BBDB_CHARSET : false,
    291                                                 'collate'  => defined( 'BBDB_COLLATE' ) ? BBDB_COLLATE : false,
    292                                              );
     286                                        'user'     => $args,
     287                                        'password' => func_get_arg( 1 ),
     288                                        'name'     => func_get_arg( 2 ),
     289                                        'host'     => func_get_arg( 3 ),
     290                                        'charset'  => defined( 'BBDB_CHARSET' ) ? BBDB_CHARSET : false,
     291                                        'collate'  => defined( 'BBDB_COLLATE' ) ? BBDB_COLLATE : false,
     292                                );
    293293                        }
    294294
  • trunk/src/bp-groups/bp-groups-functions.php

    r11027 r11032  
    17371737        if ( ! bp_is_item_admin() ) {
    17381738                return false;
    1739         }
     1739        }
    17401740
    17411741        $member = new BP_Groups_Member( $user_id, $group_id );
  • trunk/src/bp-groups/classes/class-bp-groups-member.php

    r11027 r11032  
    679679                if ( $limit && $page ) {
    680680                        $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit ), intval( $limit ) );
    681           }
     681                }
    682682
    683683                if ( $filter ) {
  • trunk/src/bp-members/bp-members-screens.php

    r10800 r11032  
    111111        } elseif ( isset( $_POST['signup_submit'] ) && bp_verify_nonce_request( 'bp_new_signup' ) ) {
    112112
    113             /**
     113                /**
    114114                 * Fires before the validation of a new signup.
    115115                 *
     
    182182                }
    183183
    184             /**
     184                /**
    185185                 * Fires after the validation of a new signup.
    186186                 *
  • trunk/src/bp-settings/bp-settings-actions.php

    r10990 r11032  
    473473        // Email change is being dismissed.
    474474        } elseif ( ! empty( $_GET['dismiss_email_change'] ) ) {
    475                 bp_delete_user_meta( bp_displayed_user_id(), 'pending_email_change' );
     475                bp_delete_user_meta( bp_displayed_user_id(), 'pending_email_change' );
    476476                bp_core_add_message( __( 'You have successfully dismissed your pending email change.', 'buddypress' ) );
    477477
Note: See TracChangeset for help on using the changeset viewer.