Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

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

    r47122 r47219  
    239239
    240240                        if ( $returnbool ) {
    241                                 return ( $data === false ) ? false : '' != trim( $data );
     241                                return ( false === $data ) ? false : '' != trim( $data );
    242242                        } else {
    243243                                return $data;
    … …  
    286286                $ret = file_put_contents( $this->sftp_path( $file ), $contents );
    287287
    288                 if ( $ret !== strlen( $contents ) ) {
     288                if ( strlen( $contents ) !== $ret ) {
    289289                        return false;
    290290                }
Note: See TracChangeset for help on using the changeset viewer.