Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (5 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/pomo/streams.php

    r46632 r47808  
    5555                return false;
    5656            }
    57             $endian_letter = ( 'big' == $this->endian ) ? 'N' : 'V';
     57            $endian_letter = ( 'big' === $this->endian ) ? 'N' : 'V';
    5858            $int           = unpack( $endian_letter, $bytes );
    5959            return reset( $int );
     
    7272                return false;
    7373            }
    74             $endian_letter = ( 'big' == $this->endian ) ? 'N' : 'V';
     74            $endian_letter = ( 'big' === $this->endian ) ? 'N' : 'V';
    7575            return unpack( $endian_letter . $count, $bytes );
    7676        }
Note: See TracChangeset for help on using the changeset viewer.