Make WordPress Core


Ignore:
Timestamp:
07/02/2019 04:43:01 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesPlugin.php

    r42343 r45588  
    407407
    408408            $files_to_move = array();
    409             if ( $mu_plugins = opendir( WPMU_PLUGIN_DIR ) ) {
     409            $mu_plugins    = opendir( WPMU_PLUGIN_DIR );
     410            if ( $mu_plugins ) {
    410411                while ( false !== $plugin = readdir( $mu_plugins ) ) {
    411412                    if ( 0 !== strpos( $plugin, '.' ) ) {
     
    433434        $mu_bu_dir     = WP_CONTENT_DIR . '/mu-plugin-backup';
    434435        $files_to_move = array();
    435         if ( is_dir( $mu_bu_dir ) && $mu_plugins = opendir( $mu_bu_dir ) ) {
     436        $mu_plugins    = @opendir( $mu_bu_dir );
     437        if ( $mu_plugins ) {
    436438            while ( false !== $plugin = readdir( $mu_plugins ) ) {
    437439                if ( 0 !== strpos( $plugin, '.' ) ) {
Note: See TracChangeset for help on using the changeset viewer.