Skip to content

Commit 8c0da25

Browse files
committed
🚿
1 parent 3c2d23d commit 8c0da25

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Data/QRMatrix.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public function setFinderPattern():self{
423423

424424
foreach($pos as $c){
425425
$this
426-
->setArea($c[0], $c[1], 7, 7, true, $this::M_FINDER)
426+
->setArea( $c[0] , $c[1] , 7, 7, true, $this::M_FINDER)
427427
->setArea(($c[0] + 1), ($c[1] + 1), 5, 5, false, $this::M_FINDER)
428428
->setArea(($c[0] + 2), ($c[1] + 2), 3, 3, true, $this::M_FINDER_DOT)
429429
;
@@ -453,8 +453,8 @@ public function setSeparators():self{
453453

454454
for($c = 0; $c < 3; $c++){
455455
for($i = 0; $i < 8; $i++){
456-
$this->set($h[$c][0] , ($h[$c][1] + $i), false, $this::M_SEPARATOR);
457-
$this->set(($v[$c][0] - $i), $v[$c][1] , false, $this::M_SEPARATOR);
456+
$this->set( $h[$c][0] , ($h[$c][1] + $i), false, $this::M_SEPARATOR);
457+
$this->set(($v[$c][0] - $i), $v[$c][1] , false, $this::M_SEPARATOR);
458458
}
459459
}
460460

@@ -601,9 +601,9 @@ public function setQuietZone(int $quietZoneSize):self{
601601
$newMatrix = $this->createMatrix($newSize, $this::M_QUIETZONE);
602602

603603
// copy over the current matrix
604-
for($y = 0; $y < $this->moduleCount; $y++){
605-
for($x = 0; $x < $this->moduleCount; $x++){
606-
$newMatrix[($y + $quietZoneSize)][($x + $quietZoneSize)] = $this->matrix[$y][$x];
604+
foreach($this->matrix as $y => $row){
605+
foreach($row as $x => $val){
606+
$newMatrix[($y + $quietZoneSize)][($x + $quietZoneSize)] = $val;
607607
}
608608
}
609609

0 commit comments

Comments
 (0)