Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2025 07:23:06 PM (4 weeks 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/converters/e107v1.php

    r7378 r7379  
    586586            if ( ! is_null( $row ) ) {
    587587                $this->map_userid[ $field ] = $row->value_id;
     588            } elseif ( true === $this->convert_users ) {
     589                $this->map_userid[ $field ] = 0;
    588590            } else {
    589                 if ( true === $this->convert_users ) {
    590                     $this->map_userid[ $field ] = 0;
    591                 } else {
    592                     $this->map_userid[ $field ] = $field;
    593                 }
     591                $this->map_userid[ $field ] = $field;
    594592            }
    595593        }
Note: See TracChangeset for help on using the changeset viewer.