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/admin/classes/class-bbp-topic-replies-list-table.php

    r7378 r7379  
    8989     */
    9090    public function get_bulk_actions() {
    91         return array();
    92 
    93         // @todo cap checks
    94         return array(
     91
     92        // Default bulk actions
     93        $retval = array(
    9594            'unapprove' => esc_html__( 'Unapprove', 'bbpress' ),
    9695            'spam'      => esc_html__( 'Spam',      'bbpress' ),
    9796            'trash'     => esc_html__( 'Trash',     'bbpress' )
    9897        );
     98
     99        // Override to empty
     100        $retval = array();
     101
     102        // Return
     103        return $retval;
    99104    }
    100105
Note: See TracChangeset for help on using the changeset viewer.