Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/16/2025 04:55:52 AM (4 months ago)
Author:
johnjamesjacoby
Message:

Tools - Code Improvement:

This commit modifies several PHP files to strictly adhere to the following PHPCS rules:

  • WordPress.WP.I18n.NonSingularStringLiteralText
  • WordPress.WP.PostsPerPage.posts_per_page_posts_per_page
  • WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterOpenParenthesis
  • WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceBeforeCloseParenthesis
  • WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis
  • WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis
  • WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter
  • WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore
  • WordPress.WhiteSpace.OperatorSpacing.SpacingAfter
  • WordPress.WhiteSpace.OperatorSpacing.SpacingBefore

This commit does not include changes to the phpcs.xml.dist config file to add these rules yet - this will happen in a separate commit.

Props sirlouen.

In trunk, for 2.7.

See #3614.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/shortcodes.php

    r7076 r7357  
    847847     */
    848848    public function display_topics_of_tag_query( $args = array() ) {
    849         $args['tax_query'] = array( array(
    850             'taxonomy' => bbp_get_topic_tag_tax_id(),
    851             'field'    => 'id',
    852             'terms'    => bbpress()->current_topic_tag_id
    853         ) );
     849        $args['tax_query'] = array(
     850            array(
     851                'taxonomy' => bbp_get_topic_tag_tax_id(),
     852                'field'    => 'id',
     853                'terms'    => bbpress()->current_topic_tag_id
     854            )
     855        );
    854856
    855857        return $args;
Note: See TracChangeset for help on using the changeset viewer.