$fp = fopen( $filename, 'r' );
Wikimedia\restoreWarnings();
- if ( false === $fp ) {
+ if ( $fp === false ) {
throw new RuntimeException( "Could not open \"{$filename}\".\n" );
}
continue;
}
- if ( '-' == $line[0] && '-' == $line[1] ) {
+ if ( $line[0] == '-' && $line[1] == '-' ) {
continue;
}
$resultCallback( $res, $this );
}
- if ( false === $res ) {
+ if ( $res === false ) {
$err = $this->lastError();
return "Query \"{$cmd}\" failed with error code \"$err\".\n";