Completed
Push — master ( 5090c5...f73f7c )
by Antonio Carlos
02:02
created
src/Google2FA.php 1 patch
Doc Comments   +12 added lines, -10 removed lines patch added patch discarded remove patch
@@ -124,7 +124,8 @@  discard block
 block discarded – undo
124 124
     /**
125 125
      * Get secret.
126 126
      *
127
-     * @return mixed
127
+     * @param string $secret
128
+     * @return string
128 129
      */
129 130
     public function getSecret($secret = null)
130 131
     {
@@ -139,7 +140,7 @@  discard block
 block discarded – undo
139 140
      * Returns the current Unix Timestamp divided by the KEY_REGENERATION
140 141
      * period.
141 142
      *
142
-     * @return int
143
+     * @return double
143 144
      **/
144 145
     public function getTimestamp()
145 146
     {
@@ -153,7 +154,7 @@  discard block
 block discarded – undo
153 154
      *
154 155
      * @throws InvalidCharactersException
155 156
      *
156
-     * @return int
157
+     * @return string
157 158
      */
158 159
     public function base32Decode($b32)
159 160
     {
@@ -167,6 +168,7 @@  discard block
 block discarded – undo
167 168
     /**
168 169
      * Get the OTP window.
169 170
      *
171
+     * @param integer $window
170 172
      * @return mixed
171 173
      */
172 174
     public function getWindow($window = null)
@@ -351,7 +353,7 @@  discard block
 block discarded – undo
351 353
      *
352 354
      * @param string $hash
353 355
      *
354
-     * @return int
356
+     * @return string
355 357
      **/
356 358
     public function oathTruncate($hash)
357 359
     {
@@ -418,9 +420,9 @@  discard block
 block discarded – undo
418 420
     /**
419 421
      * Creates a QR code url.
420 422
      *
421
-     * @param $company
422
-     * @param $holder
423
-     * @param $secret
423
+     * @param string $company
424
+     * @param string $holder
425
+     * @param string $secret
424 426
      *
425 427
      * @return string
426 428
      */
@@ -445,7 +447,7 @@  discard block
 block discarded – undo
445 447
     /**
446 448
      * Validate the secret.
447 449
      *
448
-     * @param $b32
450
+     * @param string $b32
449 451
      */
450 452
     private function validateSecret($b32)
451 453
     {
@@ -457,9 +459,9 @@  discard block
 block discarded – undo
457 459
     /**
458 460
      * Encode a string to Base32.
459 461
      *
460
-     * @param $string
462
+     * @param string $string
461 463
      *
462
-     * @return mixed
464
+     * @return string
463 465
      */
464 466
     public function toBase32($string)
465 467
     {
Please login to merge, or discard this patch.