Completed
Branch master (5cf9d3)
by Markus
03:43
created
lib/Fhp/Dialog/Dialog.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
lib/Fhp/Model/StatementOfAccount/Statement.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     /**
88 88
      * Get creditDebit
89 89
      *
90
-     * @return mixed
90
+     * @return string
91 91
      */
92 92
     public function getCreditDebit()
93 93
     {
Please login to merge, or discard this patch.
lib/Fhp/Parser/MT940.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
lib/Fhp/Response/Response.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
lib/Tests/Fhp/Message/MessageTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Samples/statement_of_account.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
Samples/saldo.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
lib/Tests/TestInit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Fhp/Message/Message.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.