@@ -2,7 +2,6 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Fhp\Message; |
| 4 | 4 | |
| 5 | -use Fhp\DataElementGroups\SecurityProfile; |
|
| 6 | 5 | use Fhp\DataTypes\Kik; |
| 7 | 6 | use Fhp\DataTypes\Ktv; |
| 8 | 7 | use Fhp\Segment\AbstractSegment; |
@@ -12,7 +11,6 @@ discard block |
||
| 12 | 11 | use Fhp\Segment\HNSHK; |
| 13 | 12 | use Fhp\Segment\HNVSD; |
| 14 | 13 | use Fhp\Segment\HNVSK; |
| 15 | -use Fhp\Segment\SegmentInterface; |
|
| 16 | 14 | |
| 17 | 15 | class MessageTest extends \PHPUnit_Framework_TestCase |
| 18 | 16 | { |
@@ -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, |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | // register silently failing autoloader |
| 8 | 8 | spl_autoload_register(function($class) { |
| 9 | 9 | if (0 === strpos($class, 'Fhp\Tests\\')) { |
| 10 | - $path = __DIR__.'/../../'.strtr($class, '\\', '/').'.php'; |
|
| 10 | + $path = __DIR__ . '/../../' . strtr($class, '\\', '/') . '.php'; |
|
| 11 | 11 | if (is_file($path) && is_readable($path)) { |
| 12 | 12 | require_once $path; |
| 13 | 13 | |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - $signatureHead = $this->buildSignatureHead(); |
|
| 115 | + $signatureHead = $this->buildSignatureHead(); |
|
| 116 | 116 | $hnvsk = $this->buildEncryptionHead(); |
| 117 | 117 | |
| 118 | 118 | $this->addSegment($hnvsk); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | $curCount = count($encryptedSegments) + 3; |
| 130 | 130 | |
| 131 | - $signatureEnd = new HNSHA($curCount, $this->securityReference, $this->pin); |
|
| 131 | + $signatureEnd = new HNSHA($curCount, $this->securityReference, $this->pin); |
|
| 132 | 132 | $this->addEncryptedSegment($signatureEnd); |
| 133 | 133 | $this->addSegment(new HNHBS($curCount + 1, $this->messageNumber)); |
| 134 | 134 | } |
@@ -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 | /** |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | foreach ($segments as $segment) { |
| 118 | 118 | $segment = $this->splitSegment($segment); |
| 119 | 119 | array_shift($segment); |
| 120 | - foreach($segment as $seg) { |
|
| 120 | + foreach ($segment as $seg) { |
|
| 121 | 121 | list($id, $msg) = explode('::', $seg, 2); |
| 122 | 122 | if ("3920" == $id) { |
| 123 | 123 | if (preg_match_all('/\d{3}/', $msg, $matches)) { |
@@ -27,11 +27,11 @@ |
||
| 27 | 27 | const SECURITY_SUPPLIER_ROLE_WIT = 4; |
| 28 | 28 | |
| 29 | 29 | const COMPRESSION_NONE = 0; |
| 30 | - const COMPRESSION_LZW = 1; |
|
| 31 | - const COMPRESSION_COM = 2; |
|
| 30 | + const COMPRESSION_LZW = 1; |
|
| 31 | + const COMPRESSION_COM = 2; |
|
| 32 | 32 | const COMPRESSION_LZSS = 3; |
| 33 | 33 | const COMPRESSION_LZHUFF = 4; |
| 34 | - const COMPRESSION_ZIP = 5; |
|
| 34 | + const COMPRESSION_ZIP = 5; |
|
| 35 | 35 | const COMPRESSION_GZIP = 6; |
| 36 | 36 | const COMPRESSION_BZIP2 = 7; |
| 37 | 37 | const COMPRESSION_NEGOTIATE = 999; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | const SYNC_MODE_NEW_CUSTOMER_ID = 0; // Neue Kundensystem-ID zurückmelden |
| 20 | 20 | const SYNC_MODE_LAST_MSG_NUMBER = 1; // Letzte verarbeitete Nachrichtennummer zurückmelden |
| 21 | - const SYNC_MODE_SIGNATURE_ID = 2; // Signatur-ID zurückmelden |
|
| 21 | + const SYNC_MODE_SIGNATURE_ID = 2; // Signatur-ID zurückmelden |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * HKSYN constructor. |