fix: QRCodeQROptionsDefaultProvider - use const values and tunning of scale
This commit is contained in:
parent
0bc7f2e9bc
commit
2d6f917ecb
@ -6,12 +6,15 @@ namespace App\Service;
|
|||||||
use App\Entity\QRCode\QRCodeQROptions;
|
use App\Entity\QRCode\QRCodeQROptions;
|
||||||
|
|
||||||
readonly final class QRCodeQROptionsDefaultProvider implements QRCodeQROptionsProviderInterface {
|
readonly final class QRCodeQROptionsDefaultProvider implements QRCodeQROptionsProviderInterface {
|
||||||
|
const DEFAULT_SCALE = 8;
|
||||||
|
const DEFAULT_MARGIN = 0;
|
||||||
|
|
||||||
private QRCodeQROptions $qrCodeDefaultOptions;
|
private QRCodeQROptions $qrCodeDefaultOptions;
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->qrCodeDefaultOptions = new QRCodeQROptions(
|
$this->qrCodeDefaultOptions = new QRCodeQROptions(
|
||||||
1,
|
self::DEFAULT_SCALE,
|
||||||
0
|
self::DEFAULT_MARGIN
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user