diff --git a/src/PaymentPart/Output/AbstractOutput.php b/src/PaymentPart/Output/AbstractOutput.php index 928e0667..4a23642f 100644 --- a/src/PaymentPart/Output/AbstractOutput.php +++ b/src/PaymentPart/Output/AbstractOutput.php @@ -34,7 +34,7 @@ public function getLanguage(): ?string return $this->language; } - public function setPrintable(bool $printable): self + public function setPrintable(bool $printable): static { $this->printable = $printable; @@ -46,7 +46,7 @@ public function isPrintable(): bool return $this->printable; } - public function setQrCodeImageFormat(string $fileExtension): self + public function setQrCodeImageFormat(string $fileExtension): static { $this->qrCodeImageFormat = $fileExtension; @@ -164,8 +164,6 @@ protected function getFurtherInformationElements(): array protected function getQrCode(): QrCode { - $qrCode = $this->qrBill->getQrCode($this->getQrCodeImageFormat()); - - return $qrCode; + return $this->qrBill->getQrCode($this->getQrCodeImageFormat()); } } diff --git a/src/PaymentPart/Output/FpdfOutput/FpdfOutput.php b/src/PaymentPart/Output/FpdfOutput/FpdfOutput.php index 61d1b77b..4da32770 100644 --- a/src/PaymentPart/Output/FpdfOutput/FpdfOutput.php +++ b/src/PaymentPart/Output/FpdfOutput/FpdfOutput.php @@ -82,7 +82,7 @@ public function getPaymentPart(): void $this->addFurtherInformationContent(); } - public function setQrCodeImageFormat(string $fileExtension): AbstractOutput + public function setQrCodeImageFormat(string $fileExtension): static { if (QrCode::FILE_FORMAT_SVG === $fileExtension) { throw new InvalidFpdfImageFormat('SVG images are not allowed by FPDF.');