mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-25 16:07:54 +00:00
🚿
This commit is contained in:
@@ -88,7 +88,7 @@ final class MaskPatternTester{
|
||||
|
||||
for($rx = -1; $rx <= 1; $rx++){
|
||||
|
||||
if(($ry === 0 && $rx === 0) || ($x + $rx < 0 || $this->moduleCount <= $x + $rx)){
|
||||
if(($ry === 0 && $rx === 0) || (($x + $rx) < 0 || $this->moduleCount <= ($x + $rx))){
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ final class MaskPatternTester{
|
||||
|
||||
foreach($this->matrix->matrix() as $y => $row){
|
||||
foreach($row as $x => $val){
|
||||
if($val >> 8 > 0){
|
||||
if(($val >> 8) > 0){
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user