@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | protected function getV2Message(): Message |
20 | 20 | { |
21 | 21 | $dom = new DOMDocument('1.0', 'UTF-8'); |
22 | - $dom->load(__DIR__.'/Stubs/camt054.v2.xml'); |
|
22 | + $dom->load(__DIR__ . '/Stubs/camt054.v2.xml'); |
|
23 | 23 | |
24 | 24 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
25 | 25 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | protected function getV4Message(): Message |
28 | 28 | { |
29 | 29 | $dom = new DOMDocument('1.0', 'UTF-8'); |
30 | - $dom->load(__DIR__.'/Stubs/camt054.v4.xml'); |
|
30 | + $dom->load(__DIR__ . '/Stubs/camt054.v4.xml'); |
|
31 | 31 | |
32 | 32 | return (new MessageFormat\V04)->getDecoder()->decode($dom); |
33 | 33 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | protected function getV1Message(): Message |
20 | 20 | { |
21 | 21 | $dom = new DOMDocument('1.0', 'UTF-8'); |
22 | - $dom->load(__DIR__.'/Stubs/camt052.v1.xml'); |
|
22 | + $dom->load(__DIR__ . '/Stubs/camt052.v1.xml'); |
|
23 | 23 | |
24 | 24 | return (new MessageFormat\V01)->getDecoder()->decode($dom); |
25 | 25 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | protected function getV2Message(): Message |
28 | 28 | { |
29 | 29 | $dom = new DOMDocument('1.0', 'UTF-8'); |
30 | - $dom->load(__DIR__.'/Stubs/camt052.v2.xml'); |
|
30 | + $dom->load(__DIR__ . '/Stubs/camt052.v2.xml'); |
|
31 | 31 | |
32 | 32 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
33 | 33 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | protected function getV2OtherAccountMessage(): Message |
36 | 36 | { |
37 | 37 | $dom = new DOMDocument('1.0', 'UTF-8'); |
38 | - $dom->load(__DIR__.'/Stubs/camt052.v2.other-account.xml'); |
|
38 | + $dom->load(__DIR__ . '/Stubs/camt052.v2.other-account.xml'); |
|
39 | 39 | |
40 | 40 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
41 | 41 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | protected function getV4Message(): Message |
44 | 44 | { |
45 | 45 | $dom = new DOMDocument('1.0', 'UTF-8'); |
46 | - $dom->load(__DIR__.'/Stubs/camt052.v4.xml'); |
|
46 | + $dom->load(__DIR__ . '/Stubs/camt052.v4.xml'); |
|
47 | 47 | |
48 | 48 | return (new MessageFormat\V04)->getDecoder()->decode($dom); |
49 | 49 | } |
@@ -223,12 +223,12 @@ discard block |
||
223 | 223 | $this->assertEquals('Company Name', $party->getRelatedPartyType()->getName()); |
224 | 224 | $this->assertEquals('NL', $party->getRelatedPartyType()->getAddress()->getCountry()); |
225 | 225 | $this->assertEquals([], $party->getRelatedPartyType()->getAddress()->getAddressLines()); |
226 | - $this->assertEquals('NL56AGDH9619008421', (string)$party->getAccount()->getIdentification()); |
|
226 | + $this->assertEquals('NL56AGDH9619008421', (string) $party->getAccount()->getIdentification()); |
|
227 | 227 | } elseif ($party->getRelatedPartyType() instanceof DTO\Debtor) { |
228 | 228 | $this->assertEquals('NAME NAME', $party->getRelatedPartyType()->getName()); |
229 | 229 | $this->assertEquals('NL', $party->getRelatedPartyType()->getAddress()->getCountry()); |
230 | 230 | $this->assertEquals(['ADDR ADDR 10', '2000 ANTWERPEN'], $party->getRelatedPartyType()->getAddress()->getAddressLines()); |
231 | - $this->assertEquals('NL56AGDH9619008421', (string)$party->getAccount()->getIdentification()); |
|
231 | + $this->assertEquals('NL56AGDH9619008421', (string) $party->getAccount()->getIdentification()); |
|
232 | 232 | } |
233 | 233 | } |
234 | 234 | } |