X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fmedia%2FDjVuImage.php;h=35cbc434e9b9e62cfd75d7f879b3617cc35763cd;hp=04ddda2e10391ebe8b4452a426d945cda368b753;hb=a38af7ba26579bb3004f673e44d39710887763aa;hpb=b8a7e59275fcb56094e5866fef49dcacc94afd48
diff --git a/includes/media/DjVuImage.php b/includes/media/DjVuImage.php
index 04ddda2e10..35cbc434e9 100644
--- a/includes/media/DjVuImage.php
+++ b/includes/media/DjVuImage.php
@@ -108,7 +108,7 @@ class DjVuImage {
$this->dumpForm( $file, $chunkLength, $indent + 1 );
} else {
fseek( $file, $chunkLength, SEEK_CUR );
- if ( $chunkLength & 1 == 1 ) {
+ if ( ( $chunkLength & 1 ) == 1 ) {
// Padding byte between chunks
fseek( $file, 1, SEEK_CUR );
}
@@ -166,7 +166,7 @@ class DjVuImage {
private function skipChunk( $file, $chunkLength ) {
fseek( $file, $chunkLength, SEEK_CUR );
- if ( $chunkLength & 0x01 == 1 && !feof( $file ) ) {
+ if ( ( $chunkLength & 0x01 ) == 1 && !feof( $file ) ) {
// padding byte
fseek( $file, 1, SEEK_CUR );
}
@@ -286,7 +286,8 @@ EOR;
$txt = preg_replace_callback( $reg, [ $this, 'pageTextCallback' ], $txt );
$txt = "\n\n\n" . $txt . "\n\n";
$xml = preg_replace( "//", "", $xml, 1 ) .
- $txt . '';
+ $txt .
+ '';
}
}