Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2025 07:23:06 PM (6 months ago)
Author:
johnjamesjacoby
Message:

Tools - Code Improvement: stop ignoring these PHPCS sniffs:

  • PEAR.Files.IncludingFile.UseRequire
  • PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineDEFAULT
  • PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose
  • Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace
  • Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure
  • Squiz.PHP.EmbeddedPhp.MultipleStatements
  • Squiz.PHP.NonExecutableCode.Unreachable
  • Universal.Arrays.DuplicateArrayKey.Found
  • Universal.ControlStructures.DisallowLonelyIf.Found
  • WordPress.PHP.NoSilencedErrors.Discouraged

This commit includes code formatting changes for the above sniffs.

See #3658.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/forums/functions.php

    r7378 r7379  
    10421042    $hidden_forums = new WP_Query(
    10431043        array(
    1044             'fields'           => 'ids',
    1045             'suppress_filters' => true,
    1046             'post_type'        => bbp_get_forum_post_type(),
    1047             'post_status'      => bbp_get_hidden_status_id(),
    1048             'posts_per_page'   => -1,
     1044            'fields'         => 'ids',
     1045            'post_type'      => bbp_get_forum_post_type(),
     1046            'post_status'    => bbp_get_hidden_status_id(),
     1047            'posts_per_page' => -1,
    10491048
    10501049            // Performance
Note: See TracChangeset for help on using the changeset viewer.