Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2019 01:38:37 PM (5 years ago)
Author:
netweb
Message:

Build Tools: Add PHPCS with custom bbPress ruleset

  • This changeset adds an initial bbPress PHPCS ruleset
  • Future iteration of the rules in the ruleset can follow later
  • To run the PHPCS check run `grunt phpcs

Fixes #3294.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/groups.php

    r6967 r7006  
    323323    public function edit_screen( $group = false ) {
    324324        $forum_id  = 0;
    325         $group_id  = empty( $group->id ) ? bp_get_new_group_id() : $group->id ;
     325        $group_id  = empty( $group->id ) ? bp_get_new_group_id() : $group->id;
    326326        $forum_ids = bbp_get_group_forum_ids( $group_id );
    327327
     
    400400            bbp_add_error( 'bbp_edit_group_forum_screen_save', __( '<strong>ERROR</strong>: Are you sure you wanted to do that?', 'bbpress' ) );
    401401            return;
    402         }
     402        }
    403403
    404404        $edit_forum = ! empty( $_POST['bbp-edit-group-forum'] ) ? true : false;
     
    963963
    964964                    // Single Topic
    965                     else:
     965                    else :
    966966                        bbp_set_query_name( 'bbp_single_topic' );
    967967                        bbp_get_template_part( 'content', 'single-topic' );
Note: See TracChangeset for help on using the changeset viewer.