diff --git a/src/ZugferdDocumentBuilder.php b/src/ZugferdDocumentBuilder.php index 8c373ea9..2ac1e5e1 100644 --- a/src/ZugferdDocumentBuilder.php +++ b/src/ZugferdDocumentBuilder.php @@ -574,8 +574,8 @@ public function addDocumentSellerContact(?string $contactpersonname, ?string $co /** * Set Sellers electronic communication information * - * @param string|null $uriScheme - * @param string|null $uri + * @param string|null $uriScheme + * @param string|null $uri * @return ZugferdDocumentBuilder */ public function setDocumentSellerCommunication(?string $uriScheme, ?string $uri): ZugferdDocumentBuilder @@ -754,8 +754,8 @@ public function addDocumentBuyerContact(?string $contactpersonname, ?string $con /** * Set Buyers electronic communication information * - * @param string|null $uriScheme - * @param string|null $uri + * @param string|null $uriScheme + * @param string|null $uri * @return ZugferdDocumentBuilder */ public function setDocumentBuyerCommunication(?string $uriScheme, ?string $uri): ZugferdDocumentBuilder diff --git a/src/ZugferdDocumentPdfBuilderAbstract.php b/src/ZugferdDocumentPdfBuilderAbstract.php index b6d1b6b3..f177fee9 100644 --- a/src/ZugferdDocumentPdfBuilderAbstract.php +++ b/src/ZugferdDocumentPdfBuilderAbstract.php @@ -47,7 +47,7 @@ abstract class ZugferdDocumentPdfBuilderAbstract /** * Constructor * - * @param string $pdfData + * @param string $pdfData * The full filename or a string containing the binary pdf data. This * is the original PDF (e.g. created by a ERP system) */ @@ -261,12 +261,12 @@ protected function extractInvoiceInformations(): array $docTypeCode = $docTypeXpath->item(0)->nodeValue; switch ($docTypeCode) { - case ZugferdInvoiceType::CREDITNOTE: - $docTypeName = 'Credit Note'; - break; - default: - $docTypeName = 'Invoice'; - break; + case ZugferdInvoiceType::CREDITNOTE: + $docTypeName = 'Credit Note'; + break; + default: + $docTypeName = 'Invoice'; + break; } $invoiceInformation = array( diff --git a/src/quick/ZugferdQuickDescriptor.php b/src/quick/ZugferdQuickDescriptor.php index 3403b333..635b5390 100644 --- a/src/quick/ZugferdQuickDescriptor.php +++ b/src/quick/ZugferdQuickDescriptor.php @@ -465,8 +465,8 @@ public function doAddBuyerTaxRegistration(string $no, string $schemeID): Zugferd /** * Set Buyers electronic communication information * - * @param string $uri - * @param string $uriScheme + * @param string $uri + * @param string $uriScheme * @return ZugferdQuickDescriptor */ public function doSetBuyerElectronicCommunication(string $uri, string $uriScheme = "EM"): ZugferdQuickDescriptor @@ -559,8 +559,8 @@ public function doAddSellerTaxRegistration(string $no, string $schemeID): Zugfer /** * Set Sellers electronic communication information * - * @param string $uri - * @param string $uriScheme + * @param string $uri + * @param string $uriScheme * @return ZugferdQuickDescriptor */ public function doSetSellerElectronicCommunication(string $uri, string $uriScheme = "EM"): ZugferdQuickDescriptor diff --git a/tests/testcases/issues/Issue18Test.php b/tests/testcases/issues/Issue18Test.php index c328ce51..fbb64801 100644 --- a/tests/testcases/issues/Issue18Test.php +++ b/tests/testcases/issues/Issue18Test.php @@ -26,4 +26,4 @@ public function testBusinessProcessSpecifiedDocumentContextParameter(): void $this->assertEquals('urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0', $invoiceObject->getExchangedDocumentContext()->getGuidelineSpecifiedDocumentContextParameter()->getId()); $this->assertEquals('urn:fdc:peppol.eu:2017:poacc:billing:01:1.0', $invoiceObject->getExchangedDocumentContext()->getBusinessProcessSpecifiedDocumentContextParameter()->getId()); } -} \ No newline at end of file +}