Make WordPress Core

Changeset 55934


Ignore:
Timestamp:
06/18/2023 12:53:47 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-includes/pomo/streams.php.

Follow-up to [10584], [11626], [12174].

Props aristath, poena, afercia, SergeyBiryukov.
See #57839.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pomo/streams.php

    r54960 r55934  
    6161        public function readint32() {
    6262            $bytes = $this->read( 4 );
    63             if ( 4 != $this->strlen( $bytes ) ) {
     63            if ( 4 !== $this->strlen( $bytes ) ) {
    6464                return false;
    6565            }
     
    7878        public function readint32array( $count ) {
    7979            $bytes = $this->read( 4 * $count );
    80             if ( 4 * $count != $this->strlen( $bytes ) ) {
     80            if ( 4 * $count !== $this->strlen( $bytes ) ) {
    8181                return false;
    8282            }
     
    195195         */
    196196        public function seekto( $pos ) {
    197             if ( -1 == fseek( $this->_f, $pos, SEEK_SET ) ) {
     197            if ( -1 === fseek( $this->_f, $pos, SEEK_SET ) ) {
    198198                return false;
    199199            }
Note: See TracChangeset for help on using the changeset viewer.