diff options
author | Mario <mario@mariovavti.com> | 2024-03-14 09:35:09 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-14 09:35:09 +0000 |
commit | 6bf61dfa6b585db01b607a79bd64ec9c583a9c10 (patch) | |
tree | 78698101aa58d918568dfc0020650fc337e8d3e0 /vendor/chillerlan/php-qrcode/src/Data/MaskPatternTester.php | |
parent | 0e59cfb8390e4c6aee29ef73b53a4dc6b7fb581e (diff) | |
download | volse-hubzilla-6bf61dfa6b585db01b607a79bd64ec9c583a9c10.tar.gz volse-hubzilla-6bf61dfa6b585db01b607a79bd64ec9c583a9c10.tar.bz2 volse-hubzilla-6bf61dfa6b585db01b607a79bd64ec9c583a9c10.zip |
composer update and use the fixed streams php-jcs library until the floats issue will be fixed upstream. see here for reference https://codeberg.org/streams/streams/issues/151
Diffstat (limited to 'vendor/chillerlan/php-qrcode/src/Data/MaskPatternTester.php')
-rw-r--r-- | vendor/chillerlan/php-qrcode/src/Data/MaskPatternTester.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/vendor/chillerlan/php-qrcode/src/Data/MaskPatternTester.php b/vendor/chillerlan/php-qrcode/src/Data/MaskPatternTester.php index 7874cb53d..959892b9b 100644 --- a/vendor/chillerlan/php-qrcode/src/Data/MaskPatternTester.php +++ b/vendor/chillerlan/php-qrcode/src/Data/MaskPatternTester.php @@ -130,7 +130,7 @@ final class MaskPatternTester{ } if( - $val === $m[$y][$x + 1] + $val === $row[$x + 1] && $val === $m[$y + 1][$x] && $val === $m[$y + 1][$x + 1] ){ @@ -154,12 +154,12 @@ final class MaskPatternTester{ if( $x + 6 < $size && $val - && !$m[$y][$x + 1] - && $m[$y][$x + 2] - && $m[$y][$x + 3] - && $m[$y][$x + 4] - && !$m[$y][$x + 5] - && $m[$y][$x + 6] + && !$row[$x + 1] + && $row[$x + 2] + && $row[$x + 3] + && $row[$x + 4] + && !$row[$x + 5] + && $row[$x + 6] ){ $penalties++; } @@ -189,8 +189,8 @@ final class MaskPatternTester{ protected function testLevel4(array $m, int $size):float{ $count = 0; - foreach($m as $y => $row){ - foreach($row as $x => $val){ + foreach($m as $row){ + foreach($row as $val){ if($val){ $count++; } |