Skip to content

Commit

Permalink
[CS] Fixed Checkstyle Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Dec 20, 2024
1 parent 8a4d16f commit fb42514
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion examples/ExampleXmlConverterCiiToUbl.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

use horstoeko\stringmanagement\PathUtils;
use horstoeko\stringmanagement\StringUtils;
use horstoeko\zugferdublbridge\XmlConverterCiiToUbl;

require dirname(__FILE__) . "/../vendor/autoload.php";
Expand Down
4 changes: 2 additions & 2 deletions src/XmlConverterCiiToUbl.php
Original file line number Diff line number Diff line change
Expand Up @@ -1225,10 +1225,10 @@ function ($taxTotalAmountNode) {
$taxTotalAmountNode->getAttribute('currencyID')
);
},
function() use ($invoiceHeaderSettlement) {
function () use ($invoiceHeaderSettlement) {
$this->destination->elementWithAttribute(
'cbc:TaxAmount',
0.0,
'0.0',
'currencyID',
$this->source->queryValue('./ram:InvoiceCurrencyCode', $invoiceHeaderSettlement)
);
Expand Down
3 changes: 2 additions & 1 deletion src/XmlDocumentReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ public function whenNotExists(string $expression, ?DOMNode $contextNode, $callba
$this->fireCallback(
$callbackElse,
$this->query($expression, $contextNode)->item(0),
$this->query($expression, $contextNode)->item(0)->parentNode);
$this->query($expression, $contextNode)->item(0)->parentNode
);
}

return $this;
Expand Down
3 changes: 1 addition & 2 deletions tests/testcases/CiiToUblWithoutTaxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function testDelivery(): void
public function testPaymentMeans(): void
{
$this->assertXPathExists('/ubl:Invoice/cac:PaymentMeans');
$this->assertXPathValue('/ubl:Invoice/cac:PaymentMeans/cbc:PaymentMeansCode', 58);
$this->assertXPathValue('/ubl:Invoice/cac:PaymentMeans/cbc:PaymentMeansCode', "58");
$this->assertXPathNotExistsWithIndex('/ubl:Invoice/cac:PaymentMeans/cbc:PaymentMeansCode/@name', 0);
$this->assertXPathNotExistsWithIndex('/ubl:Invoice/cac:PaymentMeans/cbc:PaymentMeansCode', 1);
$this->assertXPathNotExistsWithIndex('/ubl:Invoice/cac:PaymentMeans/cbc:PaymentID', 0);
Expand Down Expand Up @@ -304,5 +304,4 @@ public function testSaveToFile(): void

@unlink($filename);
}

}

0 comments on commit fb42514

Please sign in to comment.