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-topic-replies-list-table.php

    r6770 r7006  
    331331        // Hierarchy
    332332        if ( ! empty( $item->post_parent ) ) {
    333             $count    = count( get_post_ancestors( $item->ID ) );
    334             $classes .= ' level-'. $count;
     333            $count    = count( get_post_ancestors( $item->ID ) );
     334            $classes .= ' level-'. $count;
    335335        } else {
    336             $classes .= ' level-0';
     336            $classes .= ' level-0';
    337337        } ?>
    338338
Note: See TracChangeset for help on using the changeset viewer.