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

    r7378 r7379  
    497497
    498498    // Include pagination
     499    // phpcs:ignore Universal.ControlStructures.DisallowLonelyIf.Found
    499500    } else {
    500501
     
    25462547
    25472548    // We are including the lead topic
     2549    // phpcs:ignore Universal.ControlStructures.DisallowLonelyIf.Found
    25482550    } else {
    25492551
     
    28662868            $r['selected'] = sanitize_key( $_POST[ $r['select_id'] ] );
    28672869
    2868         // No Post value was passed
     2870        // Edit reply
     2871        } elseif ( bbp_is_reply_edit() ) {
     2872            $r['reply_id'] = bbp_get_reply_id( $r['reply_id'] );
     2873            $r['selected'] = bbp_get_reply_status( $r['reply_id'] );
     2874
     2875        // New reply
    28692876        } else {
    2870 
    2871             // Edit reply
    2872             if ( bbp_is_reply_edit() ) {
    2873                 $r['reply_id'] = bbp_get_reply_id( $r['reply_id'] );
    2874                 $r['selected'] = bbp_get_reply_status( $r['reply_id'] );
    2875 
    2876             // New reply
    2877             } else {
    2878                 $r['selected'] = bbp_get_public_status_id();
    2879             }
     2877            $r['selected'] = bbp_get_public_status_id();
    28802878        }
    28812879    }
Note: See TracChangeset for help on using the changeset viewer.