Skip to content

Commit

Permalink
Code Doc Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Sep 29, 2023
1 parent 26bf859 commit 87a84b6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/ZugferdDocumentBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions src/ZugferdDocumentPdfBuilderAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/
Expand Down Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions src/quick/ZugferdQuickDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/testcases/issues/Issue18Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}

0 comments on commit 87a84b6

Please sign in to comment.