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/common/template.php

    r6930 r7006  
    20852085 * @return bool True if match, false if not
    20862086 */
    2087 function bbp_is_query_name( $name = '' )  {
     2087function bbp_is_query_name( $name = '' ) {
    20882088    return (bool) ( bbp_get_query_name() === $name );
    20892089}
     
    20962096 * @return string To return the query var value
    20972097 */
    2098 function bbp_get_query_name()  {
     2098function bbp_get_query_name() {
    20992099    return get_query_var( '_bbp_query_name' );
    21002100}
     
    21072107 * @param string $name What to set the query var to
    21082108 */
    2109 function bbp_set_query_name( $name = '' )  {
     2109function bbp_set_query_name( $name = '' ) {
    21102110    set_query_var( '_bbp_query_name', $name );
    21112111}
     
    24132413
    24142414        // Build the trail
    2415         $trail  = ! empty( $crumbs ) ? ( $r['before'] . $r['crumb_before'] . implode( $sep . $r['crumb_after'] . $r['crumb_before'] , $crumbs ) . $r['crumb_after'] . $r['after'] ) : '';
     2415        $trail  = ! empty( $crumbs ) ? ( $r['before'] . $r['crumb_before'] . implode( $sep . $r['crumb_after'] . $r['crumb_before'], $crumbs ) . $r['crumb_after'] . $r['after'] ) : '';
    24162416
    24172417        // Filter & return
Note: See TracChangeset for help on using the changeset viewer.