fix: QRCodeQROptionsDefaultProvider - use const values and tunning of scale

This commit is contained in:
Ondrej Vlach 2024-01-18 14:24:03 +01:00
parent 0bc7f2e9bc
commit 2d6f917ecb
Signed by: ovlach
GPG Key ID: 4FF1A23B4914DE70

View File

@ -6,12 +6,15 @@ namespace App\Service;
use App\Entity\QRCode\QRCodeQROptions;
readonly final class QRCodeQROptionsDefaultProvider implements QRCodeQROptionsProviderInterface {
const DEFAULT_SCALE = 8;
const DEFAULT_MARGIN = 0;
private QRCodeQROptions $qrCodeDefaultOptions;
public function __construct() {
$this->qrCodeDefaultOptions = new QRCodeQROptions(
1,
0
self::DEFAULT_SCALE,
self::DEFAULT_MARGIN
);
}