@@ -11,7 +11,7 @@ |
||
11 | 11 | protected function getDefaultMessage() |
12 | 12 | { |
13 | 13 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
14 | - $dom->load(__DIR__.'/Camt053/Stubs/camt053.v2.multi.statement.xml'); |
|
14 | + $dom->load(__DIR__ . '/Camt053/Stubs/camt053.v2.multi.statement.xml'); |
|
15 | 15 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
16 | 16 | } |
17 | 17 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | protected function getV2Message() |
16 | 16 | { |
17 | 17 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
18 | - $dom->load(__DIR__.'/Stubs/camt053.v2.minimal.xml'); |
|
18 | + $dom->load(__DIR__ . '/Stubs/camt053.v2.minimal.xml'); |
|
19 | 19 | |
20 | 20 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
21 | 21 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | protected function getV2UltimateMessage() |
24 | 24 | { |
25 | 25 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
26 | - $dom->load(__DIR__.'/Stubs/camt053.v2.minimal.ultimate.xml'); |
|
26 | + $dom->load(__DIR__ . '/Stubs/camt053.v2.minimal.ultimate.xml'); |
|
27 | 27 | |
28 | 28 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
29 | 29 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | protected function getV3Message() |
32 | 32 | { |
33 | 33 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
34 | - $dom->load(__DIR__.'/Stubs/camt053.v3.xml'); |
|
34 | + $dom->load(__DIR__ . '/Stubs/camt053.v3.xml'); |
|
35 | 35 | |
36 | 36 | return (new MessageFormat\V03)->getDecoder()->decode($dom); |
37 | 37 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | protected function getV4Message() |
40 | 40 | { |
41 | 41 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
42 | - $dom->load(__DIR__.'/Stubs/camt053.v4.xml'); |
|
42 | + $dom->load(__DIR__ . '/Stubs/camt053.v4.xml'); |
|
43 | 43 | |
44 | 44 | return (new MessageFormat\V04)->getDecoder()->decode($dom); |
45 | 45 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $this->expectException(InvalidMessageException::class); |
50 | 50 | |
51 | 51 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
52 | - $dom->load(__DIR__.'/Stubs/camt053.v2.wrong.xml'); |
|
52 | + $dom->load(__DIR__ . '/Stubs/camt053.v2.wrong.xml'); |
|
53 | 53 | |
54 | 54 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
55 | 55 | } |
@@ -57,21 +57,21 @@ discard block |
||
57 | 57 | public function testFiveDecimalsStatement() |
58 | 58 | { |
59 | 59 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
60 | - $dom->load(__DIR__.'/Stubs/camt053.v2.five.decimals.xml'); |
|
60 | + $dom->load(__DIR__ . '/Stubs/camt053.v2.five.decimals.xml'); |
|
61 | 61 | $this->assertInstanceOf(Message::class, (new MessageFormat\V02)->getDecoder()->decode($dom)); |
62 | 62 | } |
63 | 63 | |
64 | 64 | public function testV3Document() |
65 | 65 | { |
66 | 66 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
67 | - $dom->load(__DIR__.'/Stubs/camt053.v3.xml'); |
|
67 | + $dom->load(__DIR__ . '/Stubs/camt053.v3.xml'); |
|
68 | 68 | $this->assertInstanceOf(Message::class, (new MessageFormat\V03)->getDecoder()->decode($dom)); |
69 | 69 | } |
70 | 70 | |
71 | 71 | public function testV4Document() |
72 | 72 | { |
73 | 73 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
74 | - $dom->load(__DIR__.'/Stubs/camt053.v4.xml'); |
|
74 | + $dom->load(__DIR__ . '/Stubs/camt053.v4.xml'); |
|
75 | 75 | $this->assertInstanceOf(Message::class, (new MessageFormat\V04)->getDecoder()->decode($dom)); |
76 | 76 | } |
77 | 77 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | protected function getV2Message() |
14 | 14 | { |
15 | 15 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
16 | - $dom->load(__DIR__.'/Stubs/camt054.v2.xml'); |
|
16 | + $dom->load(__DIR__ . '/Stubs/camt054.v2.xml'); |
|
17 | 17 | |
18 | 18 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
19 | 19 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | protected function getV4Message() |
22 | 22 | { |
23 | 23 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
24 | - $dom->load(__DIR__.'/Stubs/camt054.v4.xml'); |
|
24 | + $dom->load(__DIR__ . '/Stubs/camt054.v4.xml'); |
|
25 | 25 | |
26 | 26 | return (new MessageFormat\V04)->getDecoder()->decode($dom); |
27 | 27 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | protected function getV1Message() |
14 | 14 | { |
15 | 15 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
16 | - $dom->load(__DIR__.'/Stubs/camt052.v1.xml'); |
|
16 | + $dom->load(__DIR__ . '/Stubs/camt052.v1.xml'); |
|
17 | 17 | |
18 | 18 | return (new MessageFormat\V01)->getDecoder()->decode($dom); |
19 | 19 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | protected function getV2Message() |
22 | 22 | { |
23 | 23 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
24 | - $dom->load(__DIR__.'/Stubs/camt052.v2.xml'); |
|
24 | + $dom->load(__DIR__ . '/Stubs/camt052.v2.xml'); |
|
25 | 25 | |
26 | 26 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
27 | 27 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | protected function getV2OtherAccountMessage() |
30 | 30 | { |
31 | 31 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
32 | - $dom->load(__DIR__.'/Stubs/camt052.v2.other-account.xml'); |
|
32 | + $dom->load(__DIR__ . '/Stubs/camt052.v2.other-account.xml'); |
|
33 | 33 | |
34 | 34 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
35 | 35 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | protected function getV4Message() |
38 | 38 | { |
39 | 39 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
40 | - $dom->load(__DIR__.'/Stubs/camt052.v4.xml'); |
|
40 | + $dom->load(__DIR__ . '/Stubs/camt052.v4.xml'); |
|
41 | 41 | |
42 | 42 | return (new MessageFormat\V04)->getDecoder()->decode($dom); |
43 | 43 | } |
@@ -213,12 +213,12 @@ discard block |
||
213 | 213 | $this->assertEquals('Company Name', $party->getRelatedPartyType()->getName()); |
214 | 214 | $this->assertEquals('NL', $party->getRelatedPartyType()->getAddress()->getCountry()); |
215 | 215 | $this->assertEquals([], $party->getRelatedPartyType()->getAddress()->getAddressLines()); |
216 | - $this->assertEquals('NL56AGDH9619008421', (string)$party->getAccount()->getIdentification()); |
|
216 | + $this->assertEquals('NL56AGDH9619008421', (string) $party->getAccount()->getIdentification()); |
|
217 | 217 | } elseif ($party->getRelatedPartyType() instanceof DTO\Debtor) { |
218 | 218 | $this->assertEquals('NAME NAME', $party->getRelatedPartyType()->getName()); |
219 | 219 | $this->assertEquals('NL', $party->getRelatedPartyType()->getAddress()->getCountry()); |
220 | 220 | $this->assertEquals(['ADDR ADDR 10', '2000 ANTWERPEN'], $party->getRelatedPartyType()->getAddress()->getAddressLines()); |
221 | - $this->assertEquals('NL56AGDH9619008421', (string)$party->getAccount()->getIdentification()); |
|
221 | + $this->assertEquals('NL56AGDH9619008421', (string) $party->getAccount()->getIdentification()); |
|
222 | 222 | } |
223 | 223 | } |
224 | 224 | } |
@@ -20,32 +20,32 @@ |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | if (isset($xmlRelatedPartyTypeAccount->Id->IBAN)) { |
23 | - return new DTO\IbanAccount(new Iban((string)$xmlRelatedPartyTypeAccount->Id->IBAN)); |
|
23 | + return new DTO\IbanAccount(new Iban((string) $xmlRelatedPartyTypeAccount->Id->IBAN)); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | if (isset($xmlRelatedPartyTypeAccount->Id->BBAN)) { |
27 | - return new DTO\BBANAccount((string)$xmlRelatedPartyTypeAccount->Id->BBAN); |
|
27 | + return new DTO\BBANAccount((string) $xmlRelatedPartyTypeAccount->Id->BBAN); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | if (isset($xmlRelatedPartyTypeAccount->Id->UPIC)) { |
31 | - return new DTO\UPICAccount((string)$xmlRelatedPartyTypeAccount->Id->UPIC); |
|
31 | + return new DTO\UPICAccount((string) $xmlRelatedPartyTypeAccount->Id->UPIC); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | if (isset($xmlRelatedPartyTypeAccount->Id->PrtryAcct)) { |
35 | - return new DTO\ProprietaryAccount((string)$xmlRelatedPartyTypeAccount->Id->PrtryAcct->Id); |
|
35 | + return new DTO\ProprietaryAccount((string) $xmlRelatedPartyTypeAccount->Id->PrtryAcct->Id); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | if (isset($xmlRelatedPartyTypeAccount->Id->Othr)) { |
39 | 39 | $xmlOtherIdentification = $xmlRelatedPartyTypeAccount->Id->Othr; |
40 | - $otherAccount = new DTO\OtherAccount((string)$xmlOtherIdentification->Id); |
|
40 | + $otherAccount = new DTO\OtherAccount((string) $xmlOtherIdentification->Id); |
|
41 | 41 | |
42 | 42 | if (isset($xmlOtherIdentification->SchmeNm)) { |
43 | 43 | if (isset($xmlOtherIdentification->SchmeNm->Cd)) { |
44 | - $otherAccount->setSchemeName((string)$xmlOtherIdentification->SchmeNm->Cd); |
|
44 | + $otherAccount->setSchemeName((string) $xmlOtherIdentification->SchmeNm->Cd); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | if (isset($xmlOtherIdentification->SchmeNm->Prtry)) { |
48 | - $otherAccount->setSchemeName((string)$xmlOtherIdentification->SchmeNm->Prtry); |
|
48 | + $otherAccount->setSchemeName((string) $xmlOtherIdentification->SchmeNm->Prtry); |
|
49 | 49 | } |
50 | 50 | } |
51 | 51 |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | if (isset($xmlRelatedParty->Cdtr)) { |
78 | 78 | $xmlRelatedPartyType = $xmlRelatedParty->Cdtr; |
79 | 79 | $xmlRelatedPartyTypeAccount = $xmlRelatedParty->CdtrAcct; |
80 | - $xmlRelatedPartyName = (isset($xmlRelatedPartyType->Nm)) ? (string) $xmlRelatedPartyType->Nm : '' ; |
|
80 | + $xmlRelatedPartyName = (isset($xmlRelatedPartyType->Nm)) ? (string) $xmlRelatedPartyType->Nm : ''; |
|
81 | 81 | $relatedPartyType = $creditor = new DTO\Creditor($xmlRelatedPartyName); |
82 | 82 | |
83 | 83 | $this->addRelatedParty($detail, $xmlRelatedPartyType, $relatedPartyType, $xmlRelatedPartyTypeAccount); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | if (isset($xmlRelatedParty->UltmtCdtr)) { |
87 | 87 | $xmlRelatedPartyType = $xmlRelatedParty->UltmtCdtr; |
88 | - $xmlRelatedPartyName = (isset($xmlRelatedPartyType->Nm)) ? (string) $xmlRelatedPartyType->Nm : '' ; |
|
88 | + $xmlRelatedPartyName = (isset($xmlRelatedPartyType->Nm)) ? (string) $xmlRelatedPartyType->Nm : ''; |
|
89 | 89 | $relatedPartyType = $creditor = new DTO\UltimateCreditor($xmlRelatedPartyName); |
90 | 90 | |
91 | 91 | $this->addRelatedParty($detail, $xmlRelatedPartyType, $relatedPartyType); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | if (isset($xmlRelatedParty->Dbtr)) { |
95 | 95 | $xmlRelatedPartyType = $xmlRelatedParty->Dbtr; |
96 | 96 | $xmlRelatedPartyTypeAccount = $xmlRelatedParty->DbtrAcct; |
97 | - $xmlRelatedPartyName = (isset($xmlRelatedPartyType->Nm)) ? (string) $xmlRelatedPartyType->Nm : '' ; |
|
97 | + $xmlRelatedPartyName = (isset($xmlRelatedPartyType->Nm)) ? (string) $xmlRelatedPartyType->Nm : ''; |
|
98 | 98 | $relatedPartyType = $debtor = new DTO\Debtor($xmlRelatedPartyName); |
99 | 99 | |
100 | 100 | $this->addRelatedParty($detail, $xmlRelatedPartyType, $relatedPartyType, $xmlRelatedPartyTypeAccount); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | if (isset($xmlRelatedParty->UltmtDbtr)) { |
104 | 104 | $xmlRelatedPartyType = $xmlRelatedParty->UltmtDbtr; |
105 | - $xmlRelatedPartyName = (isset($xmlRelatedPartyType->Nm)) ? (string) $xmlRelatedPartyType->Nm : '' ; |
|
105 | + $xmlRelatedPartyName = (isset($xmlRelatedPartyType->Nm)) ? (string) $xmlRelatedPartyType->Nm : ''; |
|
106 | 106 | $relatedPartyType = $creditor = new DTO\UltimateDebtor($xmlRelatedPartyName); |
107 | 107 | |
108 | 108 | $this->addRelatedParty($detail, $xmlRelatedPartyType, $relatedPartyType); |
@@ -143,14 +143,14 @@ discard block |
||
143 | 143 | |
144 | 144 | foreach ($xmlDetail->RltdAgts as $xmlRelatedAgent) { |
145 | 145 | if (isset($xmlRelatedAgent->CdtrAgt)) { |
146 | - $agent = new DTO\CreditorAgent((string)$xmlRelatedAgent->CdtrAgt->FinInstnId->Nm, (string)$xmlRelatedAgent->CdtrAgt->FinInstnId->BIC); |
|
147 | - $relatedAgent = new DTO\RelatedAgent($agent); |
|
146 | + $agent = new DTO\CreditorAgent((string) $xmlRelatedAgent->CdtrAgt->FinInstnId->Nm, (string) $xmlRelatedAgent->CdtrAgt->FinInstnId->BIC); |
|
147 | + $relatedAgent = new DTO\RelatedAgent($agent); |
|
148 | 148 | $detail->addRelatedAgent($relatedAgent); |
149 | 149 | } |
150 | 150 | |
151 | 151 | if (isset($xmlRelatedAgent->DbtrAgt)) { |
152 | - $agent = new DTO\DebtorAgent((string)$xmlRelatedAgent->DbtrAgt->FinInstnId->Nm, (string)$xmlRelatedAgent->DbtrAgt->FinInstnId->BIC); |
|
153 | - $relatedAgent = new DTO\RelatedAgent($agent); |
|
152 | + $agent = new DTO\DebtorAgent((string) $xmlRelatedAgent->DbtrAgt->FinInstnId->Nm, (string) $xmlRelatedAgent->DbtrAgt->FinInstnId->BIC); |
|
153 | + $relatedAgent = new DTO\RelatedAgent($agent); |
|
154 | 154 | $detail->addRelatedAgent($relatedAgent); |
155 | 155 | } |
156 | 156 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | if ($xmlDetailsUnstructuredBlocks !== null) { |
175 | 175 | foreach ($xmlDetailsUnstructuredBlocks as $xmlDetailsUnstructuredBlock) { |
176 | 176 | $unstructuredRemittanceInformation = new DTO\UnstructuredRemittanceInformation( |
177 | - (string)$xmlDetailsUnstructuredBlock |
|
177 | + (string) $xmlDetailsUnstructuredBlock |
|
178 | 178 | ); |
179 | 179 | |
180 | 180 | $remittanceInformation->addUnstructuredBlock($unstructuredRemittanceInformation); |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | if ($remittanceInformation->getMessage() === null) { |
184 | 184 | $unstructuredBlockExists = true; |
185 | 185 | $remittanceInformation->setMessage( |
186 | - (string)$xmlDetailsUnstructuredBlock |
|
186 | + (string) $xmlDetailsUnstructuredBlock |
|
187 | 187 | ); |
188 | 188 | } |
189 | 189 | } |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | |
198 | 198 | if (isset($xmlDetailsStructuredBlock->AddtlRmtInf)) { |
199 | 199 | $structuredRemittanceInformation->setAdditionalRemittanceInformation( |
200 | - (string)$xmlDetailsStructuredBlock->AddtlRmtInf |
|
200 | + (string) $xmlDetailsStructuredBlock->AddtlRmtInf |
|
201 | 201 | ); |
202 | 202 | } |
203 | 203 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | if (isset($xmlDetailsStructuredBlock->CdtrRefInf->Ref)) { |
208 | 208 | $creditorReferenceInformation->setRef( |
209 | - (string)$xmlDetailsStructuredBlock->CdtrRefInf->Ref |
|
209 | + (string) $xmlDetailsStructuredBlock->CdtrRefInf->Ref |
|
210 | 210 | ); |
211 | 211 | } |
212 | 212 | |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | && isset($xmlDetailsStructuredBlock->CdtrRefInf->Tp->CdOrPrtry) |
215 | 215 | && isset($xmlDetailsStructuredBlock->CdtrRefInf->Tp->CdOrPrtry->Prtry)) { |
216 | 216 | $creditorReferenceInformation->setProprietary( |
217 | - (string)$xmlDetailsStructuredBlock->CdtrRefInf->Tp->CdOrPrtry->Prtry |
|
217 | + (string) $xmlDetailsStructuredBlock->CdtrRefInf->Tp->CdOrPrtry->Prtry |
|
218 | 218 | ); |
219 | 219 | } |
220 | 220 | |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | && isset($xmlDetailsStructuredBlock->CdtrRefInf->Tp->CdOrPrtry) |
223 | 223 | && isset($xmlDetailsStructuredBlock->CdtrRefInf->Tp->CdOrPrtry->Cd)) { |
224 | 224 | $creditorReferenceInformation->setCode( |
225 | - (string)$xmlDetailsStructuredBlock->CdtrRefInf->Tp->CdOrPrtry->Cd |
|
225 | + (string) $xmlDetailsStructuredBlock->CdtrRefInf->Tp->CdOrPrtry->Cd |
|
226 | 226 | ); |
227 | 227 | } |
228 | 228 | |
@@ -270,8 +270,8 @@ discard block |
||
270 | 270 | { |
271 | 271 | if (isset($xmlDetail->RtrInf) && isset($xmlDetail->RtrInf->Rsn->Cd)) { |
272 | 272 | $remittanceInformation = DTO\ReturnInformation::fromUnstructured( |
273 | - (string)$xmlDetail->RtrInf->Rsn->Cd, |
|
274 | - (string)$xmlDetail->RtrInf->AddtlInf |
|
273 | + (string) $xmlDetail->RtrInf->Rsn->Cd, |
|
274 | + (string) $xmlDetail->RtrInf->AddtlInf |
|
275 | 275 | ); |
276 | 276 | $detail->setReturnInformation($remittanceInformation); |
277 | 277 | } |
@@ -304,8 +304,8 @@ discard block |
||
304 | 304 | |
305 | 305 | if (isset($xmlDetail->BkTxCd->Prtry)) { |
306 | 306 | $proprietaryBankTransactionCode = new DTO\ProprietaryBankTransactionCode( |
307 | - (string)$xmlDetail->BkTxCd->Prtry->Cd, |
|
308 | - (string)$xmlDetail->BkTxCd->Prtry->Issr |
|
307 | + (string) $xmlDetail->BkTxCd->Prtry->Cd, |
|
308 | + (string) $xmlDetail->BkTxCd->Prtry->Issr |
|
309 | 309 | ); |
310 | 310 | |
311 | 311 | $bankTransactionCode->setProprietary($proprietaryBankTransactionCode); |
@@ -313,13 +313,13 @@ discard block |
||
313 | 313 | |
314 | 314 | if (isset($xmlDetail->BkTxCd->Domn)) { |
315 | 315 | $domainBankTransactionCode = new DTO\DomainBankTransactionCode( |
316 | - (string)$xmlDetail->BkTxCd->Domn->Cd |
|
316 | + (string) $xmlDetail->BkTxCd->Domn->Cd |
|
317 | 317 | ); |
318 | 318 | |
319 | 319 | if (isset($xmlDetail->BkTxCd->Domn->Fmly)) { |
320 | 320 | $domainFamilyBankTransactionCode = new DTO\DomainFamilyBankTransactionCode( |
321 | - (string)$xmlDetail->BkTxCd->Domn->Fmly->Cd, |
|
322 | - (string)$xmlDetail->BkTxCd->Domn->Fmly->SubFmlyCd |
|
321 | + (string) $xmlDetail->BkTxCd->Domn->Fmly->Cd, |
|
322 | + (string) $xmlDetail->BkTxCd->Domn->Fmly->SubFmlyCd |
|
323 | 323 | ); |
324 | 324 | |
325 | 325 | $domainBankTransactionCode->setFamily($domainFamilyBankTransactionCode); |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | |
344 | 344 | if (isset($xmlDetail->Chrgs->TtlChrgsAndTaxAmt) && (string) $xmlDetail->Chrgs->TtlChrgsAndTaxAmt) { |
345 | 345 | $amount = StringToUnits::convert((string) $xmlDetail->Chrgs->TtlChrgsAndTaxAmt); |
346 | - $currency = (string)$xmlDetail->Chrgs->TtlChrgsAndTaxAmt['Ccy']; |
|
346 | + $currency = (string) $xmlDetail->Chrgs->TtlChrgsAndTaxAmt['Ccy']; |
|
347 | 347 | |
348 | 348 | $charges->setTotalChargesAndTaxAmount(new Money($amount, new Currency($currency))); |
349 | 349 | } |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | |
358 | 358 | if (isset($chargesRecord->Amt) && (string) $chargesRecord->Amt) { |
359 | 359 | $amount = StringToUnits::convert((string) $chargesRecord->Amt); |
360 | - $currency = (string)$chargesRecord->Amt['Ccy']; |
|
360 | + $currency = (string) $chargesRecord->Amt['Ccy']; |
|
361 | 361 | |
362 | 362 | if ((string) $chargesRecord->CdtDbtInd === 'DBIT') { |
363 | 363 | $amount = $amount * -1; |