:octocat: proper names for QRMatrix getters

This commit is contained in:
smiley
2023-04-04 15:00:55 +02:00
parent 284c42db88
commit 1b2aa52d03
20 changed files with 57 additions and 57 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ abstract class QROutputAbstract implements QROutputInterface{
/**
* the current size of the QR matrix
*
* @see \chillerlan\QRCode\Data\QRMatrix::size()
* @see \chillerlan\QRCode\Data\QRMatrix::getSize()
*/
protected int $moduleCount;
@@ -71,7 +71,7 @@ abstract class QROutputAbstract implements QROutputInterface{
* Call this method if you modify the matrix from within your custom module in case the dimensions have been changed
*/
protected function setMatrixDimensions():void{
$this->moduleCount = $this->matrix->size();
$this->moduleCount = $this->matrix->getSize();
$this->scale = $this->options->scale;
$this->length = ($this->moduleCount * $this->scale);
}
@@ -152,7 +152,7 @@ abstract class QROutputAbstract implements QROutputInterface{
$paths = [];
// collect the modules for each type
foreach($this->matrix->matrix() as $y => $row){
foreach($this->matrix->getMatrix() as $y => $row){
foreach($row as $x => $M_TYPE){
$M_TYPE_LAYER = $M_TYPE;