@@ -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 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | /** |
73 | 73 | * @return null|DateTimeImmutable |
74 | 74 | */ |
75 | - public function getCreatedOn():?DateTimeImmutable |
|
75 | + public function getCreatedOn(): ?DateTimeImmutable |
|
76 | 76 | { |
77 | 77 | return $this->createdOn; |
78 | 78 | } |
@@ -81,7 +81,7 @@ |
||
81 | 81 | /** |
82 | 82 | * @return null|Recipient |
83 | 83 | */ |
84 | - public function getMessageRecipient():?Recipient |
|
84 | + public function getMessageRecipient(): ?Recipient |
|
85 | 85 | { |
86 | 86 | return $this->messageRecipient; |
87 | 87 | } |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | /** |
170 | 170 | * @return null|DateTimeImmutable |
171 | 171 | */ |
172 | - public function getFromDate():?DateTimeImmutable |
|
172 | + public function getFromDate(): ?DateTimeImmutable |
|
173 | 173 | { |
174 | 174 | return $this->fromDate; |
175 | 175 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | /** |
186 | 186 | * @return null|DateTimeImmutable |
187 | 187 | */ |
188 | - public function getToDate():?DateTimeImmutable |
|
188 | + public function getToDate(): ?DateTimeImmutable |
|
189 | 189 | { |
190 | 190 | return $this->toDate; |
191 | 191 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | /** |
81 | 81 | * @return null|ContactDetails |
82 | 82 | */ |
83 | - public function getContactDetails():?ContactDetails |
|
83 | + public function getContactDetails(): ?ContactDetails |
|
84 | 84 | { |
85 | 85 | return $this->contactDetails; |
86 | 86 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * @return null|Identification |
98 | 98 | */ |
99 | - public function getIdentification():?Identification |
|
99 | + public function getIdentification(): ?Identification |
|
100 | 100 | { |
101 | 101 | return $this->identification; |
102 | 102 | } |