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-direct.php

    r47122 r47219  
    472472         */
    473473        public function touch( $file, $time = 0, $atime = 0 ) {
    474                 if ( $time == 0 ) {
     474                if ( 0 == $time ) {
    475475                        $time = time();
    476476                }
    477                 if ( $atime == 0 ) {
     477                if ( 0 == $atime ) {
    478478                        $atime = time();
    479479                }
Note: See TracChangeset for help on using the changeset viewer.