🚿 rename QRMatrix::checkTypes() to checkTypeNotIn() and switch return value to better reflect what it actually does

This commit is contained in:
smiley
2022-06-06 07:43:16 +02:00
parent 9aad8fbbdf
commit 1f435dfd54
5 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ abstract class QROutputAbstract implements QROutputInterface{
foreach($this->matrix->matrix() as $y => $row){
foreach($row as $x => $M_TYPE){
if($this->options->connectPaths && !$this->matrix->checkTypes($x, $y, $this->options->excludeFromConnect)){
if($this->options->connectPaths && $this->matrix->checkTypeNotIn($x, $y, $this->options->excludeFromConnect)){
// to connect paths we'll redeclare the $M_TYPE to data only
$M_TYPE = QRMatrix::M_DATA;