Skip to content

Commit a165984

Browse files
committed
:octocat:
1 parent afee26a commit a165984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/QRMatrix.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace chillerlan\QRCode\Data;
1212

1313
use chillerlan\QRCode\Common\{BitBuffer, EccLevel, MaskPattern, ReedSolomonEncoder, Version};
14-
use function array_fill, count, floor, range;
14+
use function array_fill, count, floor;
1515

1616
/**
1717
* Holds an array representation of the final QR Code that contains numerical values for later output modifications;
@@ -459,7 +459,7 @@ public function setAlignmentPattern():self{
459459
*/
460460
public function setTimingPattern():self{
461461

462-
foreach(range(8, ($this->moduleCount - 8 - 1)) as $i){
462+
for($i = 8; $i < ($this->moduleCount - 8); $i++){
463463

464464
if($this->matrix[6][$i] !== $this::M_NULL || $this->matrix[$i][6] !== $this::M_NULL){
465465
continue;

0 commit comments

Comments
 (0)