Make WordPress Core


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

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/revision.php

    r47122 r47219  
    355355    }
    356356
    357     if ( $output == OBJECT ) {
     357    if ( OBJECT == $output ) {
    358358        return $revision;
    359     } elseif ( $output == ARRAY_A ) {
     359    } elseif ( ARRAY_A == $output ) {
    360360        $_revision = get_object_vars( $revision );
    361361        return $_revision;
    362     } elseif ( $output == ARRAY_N ) {
     362    } elseif ( ARRAY_N == $output ) {
    363363        $_revision = array_values( get_object_vars( $revision ) );
    364364        return $_revision;
Note: See TracChangeset for help on using the changeset viewer.