Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.
See #47632. Built from https://develop.svn.wordpress.org/trunk@45583 git-svn-id: http://core.svn.wordpress.org/trunk@45394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -224,7 +224,8 @@ class WP_Filesystem_Base {
|
||||
$this->cache[ $folder ] = $folder;
|
||||
return $folder;
|
||||
}
|
||||
if ( $return = $this->search_for_folder( $folder ) ) {
|
||||
$return = $this->search_for_folder( $folder );
|
||||
if ( $return ) {
|
||||
$this->cache[ $folder ] = $return;
|
||||
}
|
||||
return $return;
|
||||
@@ -284,7 +285,8 @@ class WP_Filesystem_Base {
|
||||
|
||||
// Only search for the remaining path tokens in the directory, not the full path again.
|
||||
$newfolder = implode( '/', array_slice( $folder_parts, $index + 1 ) );
|
||||
if ( $ret = $this->search_for_folder( $newfolder, $newdir, $loop ) ) {
|
||||
$ret = $this->search_for_folder( $newfolder, $newdir, $loop );
|
||||
if ( $ret ) {
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
@@ -398,7 +400,8 @@ class WP_Filesystem_Base {
|
||||
$attarray = preg_split( '//', $mode );
|
||||
|
||||
for ( $i = 0, $c = count( $attarray ); $i < $c; $i++ ) {
|
||||
if ( $key = array_search( $attarray[ $i ], $legal ) ) {
|
||||
$key = array_search( $attarray[ $i ], $legal );
|
||||
if ( $key ) {
|
||||
$realmode .= $legal[ $key ];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user