💄 code style fixes

This commit is contained in:
smiley
2023-03-11 02:38:57 +01:00
parent abfd69e44a
commit 6b2a529160
74 changed files with 843 additions and 777 deletions
+5 -8
View File
@@ -48,9 +48,6 @@ class QRImageWithText extends QRGdImage{
return $imageData;
}
/**
* @inheritDoc
*/
protected function addText(string $text):void{
// save the qrcode image
$qrcode = $this->image;
@@ -61,7 +58,7 @@ class QRImageWithText extends QRGdImage{
$textColor = [50, 50, 50];
$bgWidth = $this->length;
$bgHeight = $bgWidth + 20; // 20px extra space
$bgHeight = ($bgWidth + 20); // 20px extra space
// create a new image with additional space
$this->image = imagecreatetruecolor($bgWidth, $bgHeight);
@@ -97,10 +94,10 @@ class QRImageWithText extends QRGdImage{
*/
$options = new QROptions([
'version' => 7,
'outputType' => QROutputInterface::GDIMAGE_PNG,
'scale' => 3,
'imageBase64' => false,
'version' => 7,
'outputType' => QROutputInterface::GDIMAGE_PNG,
'scale' => 3,
'imageBase64' => false,
]);
$qrcode = new QRCode($options);