mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-11-16 23:56:11 +00:00
:octocat: fix PHPCS config, add Slevomat rules
This commit is contained in:
+2
-2
@@ -208,7 +208,7 @@ final class QRData{
|
||||
/**
|
||||
* creates a BitBuffer and writes the string data to it
|
||||
*
|
||||
* @throws \chillerlan\QRCode\QRCodeException on data overflow
|
||||
* @throws \chillerlan\QRCode\Data\QRCodeDataException on data overflow
|
||||
*/
|
||||
private function writeBitBuffer():void{
|
||||
$MAX_BITS = $this->eccLevel->getMaxBitsForVersion($this->version);
|
||||
@@ -220,7 +220,7 @@ final class QRData{
|
||||
// overflow, likely caused due to invalid version setting
|
||||
if($this->bitBuffer->getLength() > $MAX_BITS){
|
||||
throw new QRCodeDataException(
|
||||
sprintf('code length overflow. (%d > %d bit)', $this->bitBuffer->getLength(), $MAX_BITS)
|
||||
sprintf('code length overflow. (%d > %d bit)', $this->bitBuffer->getLength(), $MAX_BITS),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user