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-http-curl.php

    r47096 r47219  
    130130                curl_setopt( $handle, CURLOPT_URL, $url );
    131131                curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true );
    132                 curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( $ssl_verify === true ) ? 2 : false );
     132                curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( true === $ssl_verify ) ? 2 : false );
    133133                curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, $ssl_verify );
    134134
     
    210210                }
    211211
    212                 if ( $parsed_args['httpversion'] == '1.0' ) {
     212                if ( '1.0' === $parsed_args['httpversion'] ) {
    213213                        curl_setopt( $handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0 );
    214214                } else {
Note: See TracChangeset for help on using the changeset viewer.