Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit e5975bc

Browse files
committed
🚿
1 parent a6518a8 commit e5975bc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/Decoder/DecodedBitStreamParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private function decodeHanziSegment(BitSource $bits, string &$result, int $count
173173
$twoBytes = $bits->readBits(13);
174174
$assembledTwoBytes = (($twoBytes / 0x060) << 8) | ($twoBytes % 0x060);
175175

176-
$assembledTwoBytes += ($assembledTwoBytes < 0x00A00)
176+
$assembledTwoBytes += ($assembledTwoBytes < 0x00A00) // 0x003BF
177177
? 0x0A1A1 // In the 0xA1A1 to 0xAAFE range
178178
: 0x0A6A1; // In the 0xB0A1 to 0xFAFE range
179179

lib/QrReader.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ public function decode($imgSource, string $sourceType = self::SOURCE_TYPE_FILE):
5757
? new IMagickLuminanceSource($im, $im->getImageWidth(), $im->getImageHeight())
5858
: new GDLuminanceSource($im, \imagesx($im), \imagesy($im));
5959

60-
61-
6260
return (new Decoder)->decode($source);
6361
}
6462

0 commit comments

Comments
 (0)