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

    r7378 r7379  
    571571        <ul class="bbp-forums-widget">
    572572
    573             <?php while ( $widget_query->have_posts() ) : $widget_query->the_post(); ?>
     573            <?php while ( $widget_query->have_posts() ) :
     574
     575                $widget_query->the_post(); ?>
    574576
    575577                <li <?php echo ( bbp_get_forum_id() === $widget_query->post->ID ? ' class="bbp-forum-widget-current-forum"' : '' ); ?>>
     
    11861188        <ul class="bbp-replies-widget">
    11871189
    1188             <?php while ( $widget_query->have_posts() ) : $widget_query->the_post(); ?>
     1190            <?php while ( $widget_query->have_posts() ) :
     1191
     1192                $widget_query->the_post(); ?>
    11891193
    11901194                <li>
Note: See TracChangeset for help on using the changeset viewer.