Skip to content

Commit 4748411

Browse files
committed
🚿
1 parent c4cd1c9 commit 4748411

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Common/MaskPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ final class MaskPattern{
7777
*/
7878
public function __construct(int $maskPattern){
7979

80-
if((0b111 & $maskPattern) !== $maskPattern){
80+
if(($maskPattern & 0b111) !== $maskPattern){
8181
throw new QRCodeException('invalid mask pattern');
8282
}
8383

src/Data/QRMatrix.php

+1
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ public function setSeparators():self{
463463

464464
for($c = 0; $c < 3; $c++){
465465
for($i = 0; $i < 8; $i++){
466+
// phpcs:ignore
466467
$this->set( $h[$c][0] , ($h[$c][1] + $i), false, $this::M_SEPARATOR);
467468
$this->set(($v[$c][0] - $i), $v[$c][1] , false, $this::M_SEPARATOR);
468469
}

0 commit comments

Comments
 (0)