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/tools/repair.php

    r6934 r7006  
    426426
    427427    if ( is_wp_error( $bbp_db->query( $sql_delete ) ) ) {
    428         return array( 1, sprintf( $statement, $result ) );
     428        return array( 1, sprintf( $statement, $result ) );
    429429    }
    430430
     
    468468
    469469    if ( is_wp_error( $bbp_db->query( $sql_delete ) ) ) {
    470         return array( 1, sprintf( $statement, $result ) );
     470        return array( 1, sprintf( $statement, $result ) );
    471471    }
    472472
     
    992992    }
    993993
    994     // Loop through forums
    995     foreach ( $forums as $forum_id ) {
     994    // Loop through forums
     995    foreach ( $forums as $forum_id ) {
    996996        if ( ! bbp_is_forum_category( $forum_id ) ) {
    997997            bbp_update_forum( array( 'forum_id' => $forum_id ) );
     
    11071107
    11081108        // If we don't have a postmeta _bbp_status value
    1109         if( empty( $topic_status ) ) {
     1109        if ( empty( $topic_status ) ) {
    11101110            update_post_meta( $closed_topic, '_bbp_status', 'publish' );
    11111111            ++$changed; // Keep a count to display at the end
Note: See TracChangeset for help on using the changeset viewer.