Skip to content

Commit 81c9f2b

Browse files
author
Marko Petrovic
committed
reformat
1 parent fac765d commit 81c9f2b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Decoder/EntryTransactionDetail.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,13 @@ public function addCharges(DTO\EntryTransactionDetail $detail, SimpleXMLElement
332332

333333
public function addAmountDetails(DTO\EntryTransactionDetail $detail, SimpleXMLElement $xmlDetail, SimpleXMLElement $CdtDbtInd): void
334334
{
335-
if (isset($xmlDetail->AmtDtls, $xmlDetail->AmtDtls->TxAmt, $xmlDetail->AmtDtls->TxAmt->Amt)) {
336-
$money = $this->moneyFactory->create($xmlDetail->AmtDtls->TxAmt->Amt, $CdtDbtInd);
337-
$detail->setAmountDetails($money);
338-
} elseif(isset($xmlDetail->AmtDtls->PrtryAmt, $xmlDetail->AmtDtls->PrtryAmt->Amt, $xmlDetail->AmtDtls->PrtryAmt->Tp)) {
339-
$money = $this->moneyFactory->create($xmlDetail->AmtDtls->PrtryAmt->Amt, $xmlDetail->AmtDtls->PrtryAmt->Tp);
340-
$detail->setAmountDetails($money);
341-
}
335+
if (isset($xmlDetail->AmtDtls, $xmlDetail->AmtDtls->TxAmt, $xmlDetail->AmtDtls->TxAmt->Amt)) {
336+
$money = $this->moneyFactory->create($xmlDetail->AmtDtls->TxAmt->Amt, $CdtDbtInd);
337+
$detail->setAmountDetails($money);
338+
} elseif (isset($xmlDetail->AmtDtls->PrtryAmt, $xmlDetail->AmtDtls->PrtryAmt->Amt, $xmlDetail->AmtDtls->PrtryAmt->Tp)) {
339+
$money = $this->moneyFactory->create($xmlDetail->AmtDtls->PrtryAmt->Amt, $xmlDetail->AmtDtls->PrtryAmt->Tp);
340+
$detail->setAmountDetails($money);
341+
}
342342
}
343343

344344
public function addAmount(DTO\EntryTransactionDetail $detail, SimpleXMLElement $xmlDetail, SimpleXMLElement $CdtDbtInd): void

0 commit comments

Comments
 (0)