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/install-helper.php

    r47198 r47219  
    176176
    177177                        // Got our column, check the params.
    178                         if ( ( $col_type != null ) && ( $row->Type != $col_type ) ) {
    179                                 ++$diffs;
    180                         }
    181                         if ( ( $is_null != null ) && ( $row->Null != $is_null ) ) {
    182                                 ++$diffs;
    183                         }
    184                         if ( ( $key != null ) && ( $row->Key != $key ) ) {
    185                                 ++$diffs;
    186                         }
    187                         if ( ( $default != null ) && ( $row->Default != $default ) ) {
    188                                 ++$diffs;
    189                         }
    190                         if ( ( $extra != null ) && ( $row->Extra != $extra ) ) {
     178                        if ( ( null != $col_type ) && ( $row->Type != $col_type ) ) {
     179                                ++$diffs;
     180                        }
     181                        if ( ( null != $is_null ) && ( $row->Null != $is_null ) ) {
     182                                ++$diffs;
     183                        }
     184                        if ( ( null != $key ) && ( $row->Key != $key ) ) {
     185                                ++$diffs;
     186                        }
     187                        if ( ( null != $default ) && ( $row->Default != $default ) ) {
     188                                ++$diffs;
     189                        }
     190                        if ( ( null != $extra ) && ( $row->Extra != $extra ) ) {
    191191                                ++$diffs;
    192192                        }
Note: See TracChangeset for help on using the changeset viewer.