From be7dc7942792a3b5fbe01dd2b38528647b45b7d1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 18 Jun 2023 12:53:47 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/pomo/streams.php`. Follow-up to [10584], [11626], [12174]. Props aristath, poena, afercia, SergeyBiryukov. See #57839. git-svn-id: https://develop.svn.wordpress.org/trunk@55934 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/pomo/streams.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/pomo/streams.php b/src/wp-includes/pomo/streams.php index 4b920c3d06..2a4feb5f67 100644 --- a/src/wp-includes/pomo/streams.php +++ b/src/wp-includes/pomo/streams.php @@ -60,7 +60,7 @@ if ( ! class_exists( 'POMO_Reader', false ) ) : */ public function readint32() { $bytes = $this->read( 4 ); - if ( 4 != $this->strlen( $bytes ) ) { + if ( 4 !== $this->strlen( $bytes ) ) { return false; } $endian_letter = ( 'big' === $this->endian ) ? 'N' : 'V'; @@ -77,7 +77,7 @@ if ( ! class_exists( 'POMO_Reader', false ) ) : */ public function readint32array( $count ) { $bytes = $this->read( 4 * $count ); - if ( 4 * $count != $this->strlen( $bytes ) ) { + if ( 4 * $count !== $this->strlen( $bytes ) ) { return false; } $endian_letter = ( 'big' === $this->endian ) ? 'N' : 'V'; @@ -194,7 +194,7 @@ if ( ! class_exists( 'POMO_FileReader', false ) ) : * @return bool */ public function seekto( $pos ) { - if ( -1 == fseek( $this->_f, $pos, SEEK_SET ) ) { + if ( -1 === fseek( $this->_f, $pos, SEEK_SET ) ) { return false; } $this->_pos = $pos;