Skip to content

Commit

Permalink
Cleaning up some quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
sprain committed Oct 1, 2023
1 parent d7a1f2e commit 4da673e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/PaymentPart/Output/TcPdfOutput/TcPdfOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ private function addSwissQrCodeImage(): void
$qrCode = $this->getQrCode();

$method = match ($this->getQrCodeImageFormat()) {
QrCode::FILE_FORMAT_SVG => "ImageSVG",
default => "Image",
QrCode::FILE_FORMAT_SVG => 'ImageSVG',
default => 'Image',
};

$yPosQrCode = 209.5 + $this->offsetY;
$xPosQrCode = self::RIGHT_PART_X + 1 + $this->offsetX;

$img = $qrCode->getAsString($this->getQrCodeImageFormat());
$this->tcPdf->$method("@".$img, $xPosQrCode, $yPosQrCode, 46, 46);
$this->tcPdf->$method('@'.$img, $xPosQrCode, $yPosQrCode, 46, 46);
}

private function addInformationContentReceipt(): void
Expand Down Expand Up @@ -252,7 +252,7 @@ private function setTitleElement(Title $element, bool $isReceiptPart): void
$isReceiptPart ? self::FONT_SIZE_TITLE_RECEIPT : self::FONT_SIZE_TITLE_PAYMENT_PART
);
$this->printCell(
Translation::get(str_replace("text.", "", $element->getTitle()), $this->language),
Translation::get(str_replace('text.', '', $element->getTitle()), $this->language),
0,
0,
self::ALIGN_BELOW
Expand All @@ -268,7 +268,7 @@ private function setTextElement(Text $element, bool $isReceiptPart): void
);

$this->printMultiCell(
str_replace("text.", "", $element->getText()),
str_replace('text.', '', $element->getText()),
$isReceiptPart ? 54 : 0,
0,
self::ALIGN_BELOW
Expand Down

0 comments on commit 4da673e

Please sign in to comment.