mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-26 18:52:54 +00:00
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
This commit is contained in:
parent
ca6a093af2
commit
be7dc79427
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user