From 6dd66bf6203052b954b50f2798338a5b878d6f9c Mon Sep 17 00:00:00 2001 From: codemasher Date: Sun, 22 Nov 2020 10:28:51 +0100 Subject: [PATCH] :shower: --- src/Common/EccLevel.php | 2 ++ src/Common/Version.php | 6 ++---- src/Data/QRData.php | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Common/EccLevel.php b/src/Common/EccLevel.php index 4091843ed..900d8c59b 100644 --- a/src/Common/EccLevel.php +++ b/src/Common/EccLevel.php @@ -14,6 +14,8 @@ namespace chillerlan\QRCode\Common; use chillerlan\QRCode\QRCodeException; +use function array_column, array_combine, array_keys; + /** */ class EccLevel{ diff --git a/src/Common/Version.php b/src/Common/Version.php index 9c75914b1..31de87649 100644 --- a/src/Common/Version.php +++ b/src/Common/Version.php @@ -1,5 +1,6 @@ bitBuffer->getLength() % 8 !== 0){ $this->bitBuffer->putBit(false); } + // The message bit stream shall then be extended to fill the data capacity of the symbol + // corresponding to the Version and Error Correction Level, by the addition of the Pad + // Codewords 11101100 and 00010001 alternately. while(true){ if($this->bitBuffer->getLength() >= $MAX_BITS){