@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | /** |
187 | 187 | * Gets the dialog ID. |
188 | 188 | * |
189 | - * @return int|string |
|
189 | + * @return integer |
|
190 | 190 | */ |
191 | 191 | public function getDialogId() |
192 | 192 | { |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | /** |
257 | 257 | * Initializes a dialog. |
258 | 258 | * |
259 | - * @return int|null |
|
259 | + * @return string|null |
|
260 | 260 | * @throws AdapterException |
261 | 261 | * @throws CurlException |
262 | 262 | * @throws FailedRequestException |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | /** |
295 | 295 | * Sends sync request. |
296 | 296 | * |
297 | - * @return mixed |
|
297 | + * @return string |
|
298 | 298 | * @throws AdapterException |
299 | 299 | * @throws CurlException |
300 | 300 | * @throws FailedRequestException |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | /** |
351 | 351 | * Ends a previous started dialog. |
352 | 352 | * |
353 | - * @return mixed |
|
353 | + * @return string |
|
354 | 354 | * @throws AdapterException |
355 | 355 | * @throws CurlException |
356 | 356 | * @throws FailedRequestException |
@@ -87,7 +87,7 @@ |
||
87 | 87 | /** |
88 | 88 | * Get creditDebit |
89 | 89 | * |
90 | - * @return mixed |
|
90 | + * @return string |
|
91 | 91 | */ |
92 | 92 | public function getCreditDebit() |
93 | 93 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * MT940 constructor. |
25 | 25 | * |
26 | - * @param $rawData |
|
26 | + * @param string $rawData |
|
27 | 27 | */ |
28 | 28 | public function __construct($rawData) |
29 | 29 | { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * Response constructor. |
28 | 28 | * |
29 | - * @param $rawResponse |
|
29 | + * @param string $rawResponse |
|
30 | 30 | */ |
31 | 31 | public function __construct($rawResponse) |
32 | 32 | { |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | |
243 | 243 | /** |
244 | 244 | * @param bool $translateCodes |
245 | - * @return mixed |
|
245 | + * @return string |
|
246 | 246 | */ |
247 | 247 | public function humanReadable($translateCodes = false) |
248 | 248 | { |
@@ -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)) { |
@@ -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 | } |