@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | protected function getV1Message() |
16 | 16 | { |
17 | 17 | $dom = new DOMDocument('1.0', 'UTF-8'); |
18 | - $dom->load(__DIR__.'/Stubs/camt052.v1.xml'); |
|
18 | + $dom->load(__DIR__ . '/Stubs/camt052.v1.xml'); |
|
19 | 19 | |
20 | 20 | return (new MessageFormat\V01)->getDecoder()->decode($dom); |
21 | 21 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | protected function getV2Message() |
24 | 24 | { |
25 | 25 | $dom = new DOMDocument('1.0', 'UTF-8'); |
26 | - $dom->load(__DIR__.'/Stubs/camt052.v2.xml'); |
|
26 | + $dom->load(__DIR__ . '/Stubs/camt052.v2.xml'); |
|
27 | 27 | |
28 | 28 | return (new MessageFormat\V02)->getDecoder()->decode($dom); |
29 | 29 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | protected function getV2OtherAccountMessage() |
32 | 32 | { |
33 | 33 | $dom = new DOMDocument('1.0', 'UTF-8'); |
34 | - $dom->load(__DIR__.'/Stubs/camt052.v2.other-account.xml'); |
|
34 | + $dom->load(__DIR__ . '/Stubs/camt052.v2.other-account.xml'); |
|
35 | 35 | |
36 | 36 | return (new MessageFormat\V02)->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/camt052.v4.xml'); |
|
42 | + $dom->load(__DIR__ . '/Stubs/camt052.v4.xml'); |
|
43 | 43 | |
44 | 44 | return (new MessageFormat\V04)->getDecoder()->decode($dom); |
45 | 45 | } |
@@ -215,12 +215,12 @@ discard block |
||
215 | 215 | $this->assertEquals('Company Name', $party->getRelatedPartyType()->getName()); |
216 | 216 | $this->assertEquals('NL', $party->getRelatedPartyType()->getAddress()->getCountry()); |
217 | 217 | $this->assertEquals([], $party->getRelatedPartyType()->getAddress()->getAddressLines()); |
218 | - $this->assertEquals('NL56AGDH9619008421', (string)$party->getAccount()->getIdentification()); |
|
218 | + $this->assertEquals('NL56AGDH9619008421', (string) $party->getAccount()->getIdentification()); |
|
219 | 219 | } elseif ($party->getRelatedPartyType() instanceof DTO\Debtor) { |
220 | 220 | $this->assertEquals('NAME NAME', $party->getRelatedPartyType()->getName()); |
221 | 221 | $this->assertEquals('NL', $party->getRelatedPartyType()->getAddress()->getCountry()); |
222 | 222 | $this->assertEquals(['ADDR ADDR 10', '2000 ANTWERPEN'], $party->getRelatedPartyType()->getAddress()->getAddressLines()); |
223 | - $this->assertEquals('NL56AGDH9619008421', (string)$party->getAccount()->getIdentification()); |
|
223 | + $this->assertEquals('NL56AGDH9619008421', (string) $party->getAccount()->getIdentification()); |
|
224 | 224 | } |
225 | 225 | } |
226 | 226 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | public function testReadFile(): void |
44 | 44 | { |
45 | 45 | $reader = new Reader(Config::getDefault()); |
46 | - $message = $reader->readFile(__DIR__.'/Camt053/Stubs/camt053.v2.minimal.xml'); |
|
46 | + $message = $reader->readFile(__DIR__ . '/Camt053/Stubs/camt053.v2.minimal.xml'); |
|
47 | 47 | $this->assertInstanceOf(DTO\Message::class, $message); |
48 | 48 | } |
49 | 49 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $config->disableXsdValidation(); |
55 | 55 | |
56 | 56 | $reader = new Reader($config); |
57 | - $message = $reader->readFile(__DIR__.'/Camt053/Stubs/camt053.v2.minimal.xml'); |
|
57 | + $message = $reader->readFile(__DIR__ . '/Camt053/Stubs/camt053.v2.minimal.xml'); |
|
58 | 58 | $this->assertInstanceOf(DTO\Message::class, $message); |
59 | 59 | } |
60 | 60 | } |