Skip to:
Content

bbPress.org

Changeset 7372


Ignore:
Timestamp:
11/18/2025 12:55:54 AM (4 months ago)
Author:
johnjamesjacoby
Message:

Tools - Code Improvement: stop ignoring Universal.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed sniff.

This change replaces inline tabs with spaces from a bunch of files where they have crept in over the years.

Location:
trunk/src/includes
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/classes/class-bbp-topic-replies-list-table.php

    r7171 r7372  
    4343
    4444        // Construct the list table
    45         parent::__construct( $args );   }
     45        parent::__construct( $args );
     46    }
    4647
    4748    /**
  • trunk/src/includes/admin/converters/Drupal7.php

    r7352 r7372  
    501501            'to_type'         => 'user',
    502502            'to_fieldname'    => '_bbp_password'
    503 //          'callback_method' => 'callback_savepass'
     503            // 'callback_method' => 'callback_savepass'
    504504        );
    505505
  • trunk/src/includes/admin/converters/Example.php

    r7352 r7372  
    162162            'join_type'       => 'INNER',
    163163            'join_expression' => 'USING groups_table.forum_id = forums_table.forum_id',
    164         //  'from_expression' => 'WHERE forums_table.forum_id != 1',
     164            // 'from_expression' => 'WHERE forums_table.forum_id != 1',
    165165            'to_type'         => 'forum'
    166166        );
  • trunk/src/includes/admin/converters/FluxBB.php

    r7352 r7372  
    455455
    456456        // Store old user salt (This is only used for the SELECT row info for the above password save)
    457 //      $this->field_map[] = array(
    458 //          'from_tablename' => 'users',
    459 //          'from_fieldname' => 'salt',
    460 //          'to_type'        => 'user',
    461 //          'to_fieldname'   => ''
    462 //      );
     457        /*
     458        $this->field_map[] = array(
     459            'from_tablename' => 'users',
     460            'from_fieldname' => 'salt',
     461            'to_type'        => 'user',
     462            'to_fieldname'   => ''
     463        );
     464        */
    463465
    464466        // User password verify class (Stored in usermeta for verifying password)
  • trunk/src/includes/admin/converters/Kunena1.php

    r7360 r7372  
    400400
    401401        // Store old user salt (This is only used for the SELECT row info for the above password save)
    402 //      $this->field_map[] = array(
    403 //          'from_tablename' => 'user',
    404 //          'from_fieldname' => 'salt',
    405 //          'to_type'        => 'user',
    406 //          'to_fieldname'   => ''
    407 //      );
     402        /*
     403        $this->field_map[] = array(
     404            'from_tablename' => 'user',
     405            'from_fieldname' => 'salt',
     406            'to_type'        => 'user',
     407            'to_fieldname'   => ''
     408        );
    408409
    409410        // User password verify class (Stored in usermeta for verifying password)
    410 //      $this->field_map[] = array(
    411 //          'to_type'      => 'user',
    412 //          'to_fieldname' => '_bbp_class',
    413 //          'default'      => 'Kunena1'
    414 //      );
     411        $this->field_map[] = array(
     412            'to_type'      => 'user',
     413            'to_fieldname' => '_bbp_class',
     414            'default'      => 'Kunena1'
     415        );
     416        */
    415417
    416418        // User name.
  • trunk/src/includes/admin/converters/Kunena3.php

    r7352 r7372  
    418418
    419419        // Store old user salt (This is only used for the SELECT row info for the above password save)
    420 //      $this->field_map[] = array(
    421 //          'from_tablename' => 'users',
    422 //          'from_fieldname' => 'salt',
    423 //          'to_type'        => 'user',
    424 //          'to_fieldname'   => ''
    425 //      );
     420        /*
     421        $this->field_map[] = array(
     422            'from_tablename' => 'users',
     423            'from_fieldname' => 'salt',
     424            'to_type'        => 'user',
     425            'to_fieldname'   => ''
     426        );
     427        */
    426428
    427429        // User password verify class (Stored in usermeta for verifying password)
  • trunk/src/includes/admin/converters/PHPWind.php

    r7352 r7372  
    421421            'to_type'         => 'user',
    422422            'to_fieldname'    => '_bbp_password'
    423 //          'callback_method' => 'callback_savepass'
     423            // 'callback_method' => 'callback_savepass'
    424424        );
    425425
    426426        // Store old user salt (This is only used for the SELECT row info for the above password save)
    427 /*      $this->field_map[] = array(
     427        /*
     428        $this->field_map[] = array(
    428429            'from_tablename' => 'user',
    429430            'from_fieldname' => 'pass',
     
    431432            'to_fieldname'   => ''
    432433        );
    433 */
     434        */
     435
    434436        // User password verify class (Stored in usermeta for verifying password)
    435437        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/Phorum.php

    r7352 r7372  
    445445
    446446        // Store old user salt (This is only used for the SELECT row info for the above password save)
    447 //      $this->field_map[] = array(
    448 //          'from_tablename' => 'users',
    449 //          'from_fieldname' => 'salt',
    450 //          'to_type'        => 'user',
    451 //          'to_fieldname'   => ''
    452 //      );
     447        /*
     448        $this->field_map[] = array(
     449            'from_tablename' => 'users',
     450            'from_fieldname' => 'salt',
     451            'to_type'        => 'user',
     452            'to_fieldname'   => ''
     453        );
     454        */
    453455
    454456        // User password verify class (Stored in usermeta for verifying password)
  • trunk/src/includes/admin/converters/XMB.php

    r7352 r7372  
    487487
    488488        // Store old User Salt (This is only used for the SELECT row info for the above password save)
    489 //      $this->field_map[] = array(
    490 //          'from_tablename' => 'members',
    491 //          'from_fieldname' => 'salt',
    492 //          'to_type'        => 'user',
    493 //          'to_fieldname'   => ''
    494 //      );
     489        /*
     490        $this->field_map[] = array(
     491            'from_tablename' => 'members',
     492            'from_fieldname' => 'salt',
     493            'to_type'        => 'user',
     494            'to_fieldname'   => ''
     495        );
     496        */
    495497
    496498        // User password verify class (Stored in usermeta for verifying password)
  • trunk/src/includes/admin/converters/XenForo.php

    r7352 r7372  
    522522        );
    523523
    524 /*      // User password.
     524        /*
     525        // User password.
    525526        // Note: We join the 'user_authenticate' table because 'user' does not include password.
    526527        $this->field_map[] = array(
     
    550551            'to_fieldname'   =>   ''
    551552        );
    552 */
     553        */
     554
    553555        // User password verify class (Stored in usermeta for verifying password)
    554556        $this->field_map[] = array(
  • trunk/src/includes/admin/converters/vBulletin.php

    r7352 r7372  
    142142            'default'      => date( 'Y-m-d H:i:s' )
    143143        );
    144         $this->field_map[]  = array(
     144        $this->field_map[] = array(
    145145            'to_type'      => 'forum',
    146146            'to_fieldname' => 'post_date_gmt',
    147147            'default'      => date( 'Y-m-d H:i:s' )
    148148        );
    149         $this->field_map[]  = array(
     149        $this->field_map[] = array(
    150150            'to_type'      => 'forum',
    151151            'to_fieldname' => 'post_modified',
    152152            'default'      => date( 'Y-m-d H:i:s' )
    153153        );
    154         $this->field_map[]  = array(
     154        $this->field_map[] = array(
    155155            'to_type'      => 'forum',
    156156            'to_fieldname' => 'post_modified_gmt',
     
    510510            'callback_method' => 'callback_datetime'
    511511        );
    512         $this->field_map[]  = array(
     512        $this->field_map[] = array(
    513513            'from_tablename'  => 'post',
    514514            'from_fieldname'  => 'dateline',
  • trunk/src/includes/admin/converters/vBulletin3.php

    r7352 r7372  
    142142            'default'      => date( 'Y-m-d H:i:s' )
    143143        );
    144         $this->field_map[]  = array(
     144        $this->field_map[] = array(
    145145            'to_type'      => 'forum',
    146146            'to_fieldname' => 'post_date_gmt',
    147147            'default'      => date( 'Y-m-d H:i:s' )
    148148        );
    149         $this->field_map[]  = array(
     149        $this->field_map[] = array(
    150150            'to_type'      => 'forum',
    151151            'to_fieldname' => 'post_modified',
    152152            'default'      => date( 'Y-m-d H:i:s' )
    153153        );
    154         $this->field_map[]  = array(
     154        $this->field_map[] = array(
    155155            'to_type'      => 'forum',
    156156            'to_fieldname' => 'post_modified_gmt',
     
    510510            'callback_method' => 'callback_datetime'
    511511        );
    512         $this->field_map[]  = array(
     512        $this->field_map[] = array(
    513513            'from_tablename'  => 'post',
    514514            'from_fieldname'  => 'dateline',
  • trunk/src/includes/admin/forums.php

    r7361 r7372  
    9898        // Overview
    9999        get_current_screen()->add_help_tab( array(
    100             'id'        => 'overview',
    101             'title'     => __( 'Overview', 'bbpress' ),
    102             'content'   =>
     100            'id'      => 'overview',
     101            'title'   => __( 'Overview', 'bbpress' ),
     102            'content' =>
    103103                '<p>' . __( 'This screen displays the individual forums on your site. You can customize the display of this screen to suit your workflow.', 'bbpress' ) . '</p>'
    104104        ) );
     
    106106        // Screen Content
    107107        get_current_screen()->add_help_tab( array(
    108             'id'        => 'screen-content',
    109             'title'     => __( 'Screen Content', 'bbpress' ),
    110             'content'   =>
     108            'id'      => 'screen-content',
     109            'title'   => __( 'Screen Content', 'bbpress' ),
     110            'content' =>
    111111                '<p>' . __( 'You can customize the display of this screen&#8217;s contents in a number of ways:', 'bbpress' ) . '</p>' .
    112112                '<ul>' .
     
    119119        // Available Actions
    120120        get_current_screen()->add_help_tab( array(
    121             'id'        => 'action-links',
    122             'title'     => __( 'Available Actions', 'bbpress' ),
    123             'content'   =>
     121            'id'      => 'action-links',
     122            'title'   => __( 'Available Actions', 'bbpress' ),
     123            'content' =>
    124124                '<p>' . __( 'Hovering over a row in the forums list will display action links that allow you to manage your forum. You can perform the following actions:', 'bbpress' ) . '</p>' .
    125125                '<ul>' .
     
    133133        // Bulk Actions
    134134        get_current_screen()->add_help_tab( array(
    135             'id'        => 'bulk-actions',
    136             'title'     => __( 'Bulk Actions', 'bbpress' ),
    137             'content'   =>
     135            'id'      => 'bulk-actions',
     136            'title'   => __( 'Bulk Actions', 'bbpress' ),
     137            'content' =>
    138138                '<p>' . __( 'You can also edit or move multiple forums to the trash at once. Select the forums you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.',           'bbpress' ) . '</p>' .
    139139                '<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected forums at once. To remove a forum from the grouping, just click the x next to its name in the Bulk Edit area that appears.', 'bbpress' ) . '</p>'
  • trunk/src/includes/admin/replies.php

    r7361 r7372  
    112112        // Overview
    113113        get_current_screen()->add_help_tab( array(
    114             'id'        => 'overview',
    115             'title'     => __( 'Overview', 'bbpress' ),
    116             'content'   =>
     114            'id'      => 'overview',
     115            'title'   => __( 'Overview', 'bbpress' ),
     116            'content' =>
    117117                '<p>' . __( 'This screen provides access to all of your replies. You can customize the display of this screen to suit your workflow.', 'bbpress' ) . '</p>'
    118118        ) );
     
    120120        // Screen Content
    121121        get_current_screen()->add_help_tab( array(
    122             'id'        => 'screen-content',
    123             'title'     => __( 'Screen Content', 'bbpress' ),
    124             'content'   =>
     122            'id'      => 'screen-content',
     123            'title'   => __( 'Screen Content', 'bbpress' ),
     124            'content' =>
    125125                '<p>' . __( 'You can customize the display of this screen&#8217;s contents in a number of ways:', 'bbpress' ) . '</p>' .
    126126                '<ul>' .
     
    134134        // Available Actions
    135135        get_current_screen()->add_help_tab( array(
    136             'id'        => 'action-links',
    137             'title'     => __( 'Available Actions', 'bbpress' ),
    138             'content'   =>
     136            'id'      => 'action-links',
     137            'title'   => __( 'Available Actions', 'bbpress' ),
     138            'content' =>
    139139                '<p>' . __( 'Hovering over a row in the replies list will display action links that allow you to manage your reply. You can perform the following actions:', 'bbpress' ) . '</p>' .
    140140                '<ul>' .
     
    150150        // Bulk Actions
    151151        get_current_screen()->add_help_tab( array(
    152             'id'        => 'bulk-actions',
    153             'title'     => __( 'Bulk Actions', 'bbpress' ),
    154             'content'   =>
     152            'id'      => 'bulk-actions',
     153            'title'   => __( 'Bulk Actions', 'bbpress' ),
     154            'content' =>
    155155                '<p>' . __( 'You can also edit, spam, or move multiple replies to the trash at once. Select the replies you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.',           'bbpress' ) . '</p>' .
    156156                '<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected replies at once. To remove a reply from the grouping, just click the x next to its name in the Bulk Edit area that appears.', 'bbpress' ) . '</p>'
  • trunk/src/includes/admin/topics.php

    r7360 r7372  
    116116        // Overview
    117117        get_current_screen()->add_help_tab( array(
    118             'id'        => 'overview',
    119             'title'     => __( 'Overview', 'bbpress' ),
    120             'content'   =>
     118            'id'      => 'overview',
     119            'title'   => __( 'Overview', 'bbpress' ),
     120            'content' =>
    121121                '<p>' . __( 'This screen displays the individual topics on your site. You can customize the display of this screen to suit your workflow.', 'bbpress' ) . '</p>'
    122122        ) );
     
    124124        // Screen Content
    125125        get_current_screen()->add_help_tab( array(
    126             'id'        => 'screen-content',
    127             'title'     => __( 'Screen Content', 'bbpress' ),
    128             'content'   =>
     126            'id'      => 'screen-content',
     127            'title'   => __( 'Screen Content', 'bbpress' ),
     128            'content' =>
    129129                '<p>' . __( 'You can customize the display of this screen&#8217;s contents in a number of ways:', 'bbpress' ) . '</p>' .
    130130                '<ul>' .
     
    138138        // Available Actions
    139139        get_current_screen()->add_help_tab( array(
    140             'id'        => 'action-links',
    141             'title'     => __( 'Available Actions', 'bbpress' ),
    142             'content'   =>
     140            'id'      => 'action-links',
     141            'title'   => __( 'Available Actions', 'bbpress' ),
     142            'content' =>
    143143                '<p>' . __( 'Hovering over a row in the topics list will display action links that allow you to manage your topic. You can perform the following actions:', 'bbpress' ) . '</p>' .
    144144                '<ul>' .
     
    156156        // Bulk Actions
    157157        get_current_screen()->add_help_tab( array(
    158             'id'        => 'bulk-actions',
    159             'title'     => __( 'Bulk Actions', 'bbpress' ),
    160             'content'   =>
     158            'id'      => 'bulk-actions',
     159            'title'   => __( 'Bulk Actions', 'bbpress' ),
     160            'content' =>
    161161                '<p>' . __( 'You can also edit, spam, or move multiple topics to the trash at once. Select the topics you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.',           'bbpress' ) . '</p>' .
    162162                '<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected topics at once. To remove a topic from the grouping, just click the x next to its name in the Bulk Edit area that appears.', 'bbpress' ) . '</p>'
  • trunk/src/includes/common/locks.php

    r7357 r7372  
    5858 * @param int $post_id ID of the post to being edited
    5959 * @return bool|array Returns false if the post doesn't exist of there is no current user, or
    60  *  an array of the lock time and the user ID.
     60 *                     an array of the lock time and the user ID.
    6161 */
    6262function bbp_set_post_lock( $post_id = 0 ) {
  • trunk/src/includes/core/capabilities.php

    r7268 r7372  
    517517 * This is currently only used when updating, uninstalling, or resetting bbPress.
    518518 *
    519  * @see bbp_admin_reset_handler()
     519 * @see bbp_admin_reset_handler()
    520520 * @see bbp_do_uninstall()
    521521 * @see bbp_version_updater()
  • trunk/src/includes/extend/buddypress/groups.php

    r7361 r7372  
    18041804
    18051805        // Use the first group ID
    1806         $group_id   = $group_ids[0];
    1807         $group      = groups_get_group( array( 'group_id' => $group_id ) );
     1806        $group_id   = $group_ids[0];
     1807        $group      = groups_get_group( array( 'group_id' => $group_id ) );
    18081808        $group_link  = trailingslashit( $this->group_url( $group ) );
    18091809        $redirect_to = trailingslashit( $group_link . $this->slug );
  • trunk/src/includes/users/engagements.php

    r7357 r7372  
    957957            'post_type'      => $r['object_type'],
    958958            'posts_per_page' => -1,
    959             'meta_query'     => array( 
     959            'meta_query'     => array(
    960960                array(
    961961                    'key'     => $r['rel_key'],
     
    970970                'ignore_sticky_posts'    => true,
    971971                'no_found_rows'          => true
    972             )   
     972            )
    973973        );
    974974    }
Note: See TracChangeset for help on using the changeset viewer.