* @ingroup Media
*/
class DjVuImage {
+
/**
- * @const DJVUTXT_MEMORY_LIMIT Memory limit for the DjVu description software
+ * Memory limit for the DjVu description software
*/
const DJVUTXT_MEMORY_LIMIT = 300000;
$this->dumpForm( $file, $chunkLength, $indent + 1 );
} else {
fseek( $file, $chunkLength, SEEK_CUR );
- if ( ( $chunkLength & 1 ) == 1 ) {
+ if ( $chunkLength & 1 ) {
// Padding byte between chunks
fseek( $file, 1, SEEK_CUR );
}
private function skipChunk( $file, $chunkLength ) {
fseek( $file, $chunkLength, SEEK_CUR );
- if ( ( $chunkLength & 0x01 ) == 1 && !feof( $file ) ) {
+ if ( ( $chunkLength & 1 ) && !feof( $file ) ) {
// padding byte
fseek( $file, 1, SEEK_CUR );
}