Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison where static strings are involved.

This reduces the number of WordPress.PHP.StrictComparisons.LooseComparison issues in half, from 1897 to 890.

Includes minor code layout fixes for better readability.

See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http-encoding.php

    r47088 r47808  
    102102
    103103        // Compressed data might contain a full header, if so strip it for gzinflate().
    104         if ( substr( $gzData, 0, 3 ) == "\x1f\x8b\x08" ) {
     104        if ( "\x1f\x8b\x08" === substr( $gzData, 0, 3 ) ) {
    105105            $i   = 10;
    106106            $flg = ord( substr( $gzData, 3, 1 ) );
Note: See TracChangeset for help on using the changeset viewer.