🛀 more docblock cleanup & micro optimizations

This commit is contained in:
codemasher
2021-11-21 11:41:40 +01:00
parent 454c6c6974
commit 153603a5dc
24 changed files with 158 additions and 101 deletions
+3 -3
View File
@@ -88,7 +88,7 @@ final class BitMatrixParser{
// Get the data mask for the format used in this QR Code. This will exclude
// some bits from reading as we wind through the bit matrix.
$dimension = $this->bitMatrix->getDimension();
$this->bitMatrix->unmask($dimension, $formatInfo->getDataMask());
$this->bitMatrix->unmask($dimension, $formatInfo->getMaskPattern());
$functionPattern = $this->bitMatrix->buildFunctionPattern($version);
$readingUp = true;
@@ -189,8 +189,8 @@ final class BitMatrixParser{
// Should return null, but, some QR codes apparently do not mask this info.
// Try again by actually masking the pattern first.
$this->parsedFormatInfo = $this->doDecodeFormatInformation(
$formatInfoBits1 ^ FormatInformation::MASK_QR,
$formatInfoBits2 ^ FormatInformation::MASK_QR
$formatInfoBits1 ^ FormatInformation::FORMAT_INFO_MASK_QR,
$formatInfoBits2 ^ FormatInformation::FORMAT_INFO_MASK_QR
);
if($this->parsedFormatInfo !== null){