Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2019 01:38:37 PM (4 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/admin/classes/class-bbp-converter-base.php

    r6832 r7006  
    392392
    393393                    // No 'WHERE' in expression
    394                     if ( stripos( $from_tablename, "WHERE" ) === false ) {
     394                    if ( stripos( $from_tablename, 'WHERE' ) === false ) {
    395395                        $from_tablename .= ' ' . $item['from_expression'];
    396396
    397397                    // 'WHERE' in expression, so replace with 'AND'
    398398                    } else {
    399                         $from_tablename .= ' ' . str_replace( "WHERE", "AND", $item['from_expression'] );
     399                        $from_tablename .= ' ' . str_replace( 'WHERE', 'AND', $item['from_expression'] );
    400400                    }
    401401                }
     
    533533                            case 'tags' :
    534534                                $post_id = wp_set_object_terms( $insert_postmeta['objectid'], $insert_postmeta['name'], 'topic-tag', true );
    535                                 $term = get_term_by( 'name', $insert_postmeta['name'], 'topic-tag');
     535                                $term    = get_term_by( 'name', $insert_postmeta['name'], 'topic-tag');
    536536                                if ( false !== $term ) {
    537537                                    wp_update_term( $term->term_id, 'topic-tag', array(
Note: See TracChangeset for help on using the changeset viewer.