Skip to content

Commit

Permalink
🚿
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Oct 22, 2023
1 parent 3c2d23d commit 8c0da25
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Data/QRMatrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public function setFinderPattern():self{

foreach($pos as $c){
$this
->setArea($c[0], $c[1], 7, 7, true, $this::M_FINDER)
->setArea( $c[0] , $c[1] , 7, 7, true, $this::M_FINDER)
->setArea(($c[0] + 1), ($c[1] + 1), 5, 5, false, $this::M_FINDER)
->setArea(($c[0] + 2), ($c[1] + 2), 3, 3, true, $this::M_FINDER_DOT)
;
Expand Down Expand Up @@ -453,8 +453,8 @@ public function setSeparators():self{

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

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

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

Expand Down

0 comments on commit 8c0da25

Please sign in to comment.