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-converter.php

    r7378 r7379  
    270270
    271271        // Get disabled PHP functions (to avoid using them)
    272         $disabled = explode( ',', @ini_get( 'disable_functions' ) );
     272        $disabled = explode( ',', @ini_get( 'disable_functions' ) ); // phpcs:ignore
    273273
    274274        // Maybe avoid terminating when the client goes away (if function is not disabled)
    275275        if ( ! in_array( 'ignore_user_abort', $disabled, true ) ) {
    276             @ignore_user_abort( true );
     276            @ignore_user_abort( true ); // phpcs:ignore
    277277        }
    278278
     
    280280        if ( ! in_array( 'ini_set', $disabled, true ) ) {
    281281            foreach ( $r as $key => $value ) {
    282                 // phpcs:ignore WordPress.PHP.IniSet.Risky
    283                 @ini_set( $key, $value );
     282                @ini_set( $key, $value ); // phpcs:ignore
    284283            }
    285284        }
Note: See TracChangeset for help on using the changeset viewer.