Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (5 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-base.php

    r45226 r45583  
    225225            return $folder;
    226226        }
    227         if ( $return = $this->search_for_folder( $folder ) ) {
     227        $return = $this->search_for_folder( $folder );
     228        if ( $return ) {
    228229            $this->cache[ $folder ] = $return;
    229230        }
     
    285286                // Only search for the remaining path tokens in the directory, not the full path again.
    286287                $newfolder = implode( '/', array_slice( $folder_parts, $index + 1 ) );
    287                 if ( $ret = $this->search_for_folder( $newfolder, $newdir, $loop ) ) {
     288                $ret       = $this->search_for_folder( $newfolder, $newdir, $loop );
     289                if ( $ret ) {
    288290                    return $ret;
    289291                }
     
    399401
    400402        for ( $i = 0, $c = count( $attarray ); $i < $c; $i++ ) {
    401             if ( $key = array_search( $attarray[ $i ], $legal ) ) {
     403            $key = array_search( $attarray[ $i ], $legal );
     404            if ( $key ) {
    402405                $realmode .= $legal[ $key ];
    403406            }
Note: See TracChangeset for help on using the changeset viewer.