Failed Conditions
Push — master ( 40aca8...9b8515 )
by Adrien
01:48
created
test/Unit/ReaderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public function testReadFile()
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
test/Unit/EntryIteratorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
test/Unit/Camt053/EndToEndTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
test/Unit/Camt054/EndToEndTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
test/Unit/Camt052/EndToEndTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.
src/Camt052/Decoder/EntryTransactionDetail.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,32 +20,32 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.