@@ -11,11 +11,11 @@ |
||
11 | 11 | use Fhp\Model\StatementOfAccount\Statement; |
12 | 12 | use Fhp\Model\StatementOfAccount\Transaction; |
13 | 13 | |
14 | -define('FHP_BANK_URL', ''); # HBCI / FinTS Url can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm (use the PIN/TAN URL) |
|
15 | -define('FHP_BANK_PORT', 443); # HBCI / FinTS Port can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm |
|
16 | -define('FHP_BANK_CODE', ''); # Your bank code / Bankleitzahl |
|
14 | +define('FHP_BANK_URL', ''); # HBCI / FinTS Url can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm (use the PIN/TAN URL) |
|
15 | +define('FHP_BANK_PORT', 443); # HBCI / FinTS Port can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm |
|
16 | +define('FHP_BANK_CODE', ''); # Your bank code / Bankleitzahl |
|
17 | 17 | define('FHP_ONLINE_BANKING_USERNAME', ''); # Your online banking username / alias |
18 | -define('FHP_ONLINE_BANKING_PIN', ''); # Your online banking PIN (NOT! the pin of your bank card!) |
|
18 | +define('FHP_ONLINE_BANKING_PIN', ''); # Your online banking PIN (NOT! the pin of your bank card!) |
|
19 | 19 | |
20 | 20 | $fints = new FinTs( |
21 | 21 | FHP_BANK_URL, |
@@ -10,11 +10,11 @@ |
||
10 | 10 | use Fhp\Model\StatementOfAccount\Statement; |
11 | 11 | use Fhp\Model\StatementOfAccount\Transaction; |
12 | 12 | |
13 | -define('FHP_BANK_URL', ''); # HBCI / FinTS Url can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm (use the PIN/TAN URL) |
|
14 | -define('FHP_BANK_PORT', 443); # HBCI / FinTS Port can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm |
|
15 | -define('FHP_BANK_CODE', ''); # Your bank code / Bankleitzahl |
|
16 | -define('FHP_ONLINE_BANKING_USERNAME', ''); # Your online banking username / alias |
|
17 | -define('FHP_ONLINE_BANKING_PIN', ''); # Your online banking PIN (NOT! the pin of your bank card!) |
|
13 | +define('FHP_BANK_URL', ''); # HBCI / FinTS Url can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm (use the PIN/TAN URL) |
|
14 | +define('FHP_BANK_PORT', 443); # HBCI / FinTS Port can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm |
|
15 | +define('FHP_BANK_CODE', ''); # Your bank code / Bankleitzahl |
|
16 | +define('FHP_ONLINE_BANKING_USERNAME', ''); # Your online banking username / alias |
|
17 | +define('FHP_ONLINE_BANKING_PIN', ''); # Your online banking PIN (NOT! the pin of your bank card!) |
|
18 | 18 | |
19 | 19 | $fints = new FinTs( |
20 | 20 | FHP_BANK_URL, |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | class SecurityIdentificationDetails extends Deg |
12 | 12 | { |
13 | - const PARTY_MS = 1; // sender |
|
13 | + const PARTY_MS = 1; // sender |
|
14 | 14 | const CID_NONE = ''; |
15 | 15 | |
16 | 16 | /** |
@@ -40,11 +40,11 @@ discard block |
||
40 | 40 | public function parse($target) |
41 | 41 | { |
42 | 42 | switch ($target) { |
43 | - case static::TARGET_ARRAY: |
|
44 | - return $this->parseToArray(); |
|
45 | - break; |
|
46 | - default: |
|
47 | - throw new MT940Exception('Invalid parse type provided'); |
|
43 | + case static::TARGET_ARRAY: |
|
44 | + return $this->parseToArray(); |
|
45 | + break; |
|
46 | + default: |
|
47 | + throw new MT940Exception('Invalid parse type provided'); |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
@@ -94,20 +94,20 @@ discard block |
||
94 | 94 | preg_match('/^\d{6}(\d{4})?(C|D|RC|RD)[A-Z]?([^N]+)N/', $transaction, $matches); |
95 | 95 | |
96 | 96 | switch ($matches[2]) { |
97 | - case 'C': |
|
98 | - $currentTrx['credit_debit'] = static::CD_CREDIT; |
|
99 | - break; |
|
100 | - case 'D': |
|
101 | - $currentTrx['credit_debit'] = static::CD_DEBIT; |
|
102 | - break; |
|
103 | - case 'RC': |
|
104 | - $currentTrx['credit_debit'] = static::CD_CREDIT_CANCELLATION; |
|
105 | - break; |
|
106 | - case 'RD': |
|
107 | - $currentTrx['credit_debit'] = static::CD_DEBIT_CANCELLATION; |
|
108 | - break; |
|
109 | - default: |
|
110 | - throw new MT940Exception('c/d/rc/rd mark not found in: ' . $transaction); |
|
97 | + case 'C': |
|
98 | + $currentTrx['credit_debit'] = static::CD_CREDIT; |
|
99 | + break; |
|
100 | + case 'D': |
|
101 | + $currentTrx['credit_debit'] = static::CD_DEBIT; |
|
102 | + break; |
|
103 | + case 'RC': |
|
104 | + $currentTrx['credit_debit'] = static::CD_CREDIT_CANCELLATION; |
|
105 | + break; |
|
106 | + case 'RD': |
|
107 | + $currentTrx['credit_debit'] = static::CD_DEBIT_CANCELLATION; |
|
108 | + break; |
|
109 | + default: |
|
110 | + throw new MT940Exception('c/d/rc/rd mark not found in: ' . $transaction); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | $amount = $matches[3]; |
@@ -60,8 +60,8 @@ |
||
60 | 60 | ); |
61 | 61 | $this->assertEquals( |
62 | 62 | '2017-04-29', |
63 | - $result[2]['date'] |
|
64 | - ); |
|
63 | + $result[2]['date'] |
|
64 | + ); |
|
65 | 65 | $this->assertEquals( |
66 | 66 | 10000.00, |
67 | 67 | $result[2]['start_balance']['amount'] |