Coding Standards: Use strict comparison in wp-admin/includes/class-wp-filesystem-*.php.

See #52627.

git-svn-id: https://develop.svn.wordpress.org/trunk@50657 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-04-05 10:36:17 +00:00
parent 906d5cd908
commit b0f74b74a5
5 changed files with 18 additions and 18 deletions
@@ -505,11 +505,11 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
* @return bool True on success, false on failure.
*/
public function touch( $file, $time = 0, $atime = 0 ) {
if ( 0 == $time ) {
if ( 0 === $time ) {
$time = time();
}
if ( 0 == $atime ) {
if ( 0 === $atime ) {
$atime = time();
}
@@ -630,7 +630,7 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
continue;
}
if ( $limit_file && $struc['name'] != $limit_file ) {
if ( $limit_file && $struc['name'] !== $limit_file ) {
continue;
}