mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-16 08:45:45 +00:00
:octocat: proper names for QRMatrix getters
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user