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-includes/class-wp-image-editor-imagick.php

    r47122 r47219  
    104104                // setIteratorIndex is optional unless mime is an animated format.
    105105                // Here, we just say no if you are missing it and aren't loading a jpeg.
    106                 if ( ! method_exists( 'Imagick', 'setIteratorIndex' ) && $mime_type !== 'image/jpeg' ) {
     106                if ( ! method_exists( 'Imagick', 'setIteratorIndex' ) && 'image/jpeg' !== $mime_type ) {
    107107                                return false;
    108108                }
Note: See TracChangeset for help on using the changeset viewer.