mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-17 18:41:04 +00:00
:octocat: QROutputAbstract::collectModules(): remove Closure parameter in favor of concrete method moduleTransform()
This commit is contained in:
@@ -37,7 +37,7 @@ class RandomDotsSVGOutput extends QRMarkupSVG{
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
protected function collectModules(Closure $transform):array{
|
||||
protected function collectModules():array{
|
||||
$paths = [];
|
||||
$dotColors = $this->options->dotColors; // avoid magic getter in long loops
|
||||
|
||||
@@ -63,7 +63,7 @@ class RandomDotsSVGOutput extends QRMarkupSVG{
|
||||
}
|
||||
|
||||
// collect the modules per $M_TYPE
|
||||
$module = $transform($x, $y, $M_TYPE, $M_TYPE_LAYER);
|
||||
$module = $this->moduleTransform($x, $y, $M_TYPE, $M_TYPE_LAYER);
|
||||
|
||||
if(!empty($module)){
|
||||
$paths[$M_TYPE_LAYER][] = $module;
|
||||
|
||||
Reference in New Issue
Block a user