@@ -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 | /** |
@@ -73,7 +73,9 @@ |
||
73 | 73 | public function getSignedStartBalance() |
74 | 74 | { |
75 | 75 | $s = 1; |
76 | - if ($this->getCreditDebit() == self::CD_DEBIT) $s = -1; |
|
76 | + if ($this->getCreditDebit() == self::CD_DEBIT) { |
|
77 | + $s = -1; |
|
78 | + } |
|
77 | 79 | return $s * $this->getStartBalance(); |
78 | 80 | |
79 | 81 | } |
@@ -93,7 +93,7 @@ |
||
93 | 93 | |
94 | 94 | preg_match('/^\d{6}(\d{4})?(C|D|RC|RD)[A-Z]?([^N]+)N/', $transaction, $matches); |
95 | 95 | |
96 | - switch($matches[2]) { |
|
96 | + switch ($matches[2]) { |
|
97 | 97 | case 'C': |
98 | 98 | $currentTrx['credit_debit'] = static::CD_CREDIT; |
99 | 99 | break; |
@@ -147,7 +147,9 @@ |
||
147 | 147 | } |
148 | 148 | } |
149 | 149 | $statement['transactions'] = $transactions; |
150 | - if (count($transactions) > 0) $result[] = $statement; |
|
150 | + if (count($transactions) > 0) { |
|
151 | + $result[] = $statement; |
|
152 | + } |
|
151 | 153 | } |
152 | 154 | |
153 | 155 | return $result; |