@@ -423,7 +423,7 @@ public function setFinderPattern():self{
423
423
424
424
foreach ($ pos as $ c ){
425
425
$ 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 )
427
427
->setArea (($ c [0 ] + 1 ), ($ c [1 ] + 1 ), 5 , 5 , false , $ this ::M_FINDER )
428
428
->setArea (($ c [0 ] + 2 ), ($ c [1 ] + 2 ), 3 , 3 , true , $ this ::M_FINDER_DOT )
429
429
;
@@ -453,8 +453,8 @@ public function setSeparators():self{
453
453
454
454
for ($ c = 0 ; $ c < 3 ; $ c ++){
455
455
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 );
458
458
}
459
459
}
460
460
@@ -601,9 +601,9 @@ public function setQuietZone(int $quietZoneSize):self{
601
601
$ newMatrix = $ this ->createMatrix ($ newSize , $ this ::M_QUIETZONE );
602
602
603
603
// 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 ;
607
607
}
608
608
}
609
609
0 commit comments