@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | /** |
125 | 125 | * Get key regeneration. |
126 | 126 | * |
127 | - * @return mixed |
|
127 | + * @return integer |
|
128 | 128 | */ |
129 | 129 | public function getKeyRegeneration() |
130 | 130 | { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | /** |
135 | 135 | * Get OTP length. |
136 | 136 | * |
137 | - * @return mixed |
|
137 | + * @return integer |
|
138 | 138 | */ |
139 | 139 | public function getOneTimePasswordLength() |
140 | 140 | { |
@@ -144,7 +144,8 @@ discard block |
||
144 | 144 | /** |
145 | 145 | * Get secret. |
146 | 146 | * |
147 | - * @return mixed |
|
147 | + * @param string $secret |
|
148 | + * @return string |
|
148 | 149 | */ |
149 | 150 | public function getSecret($secret = null) |
150 | 151 | { |
@@ -173,7 +174,7 @@ discard block |
||
173 | 174 | * |
174 | 175 | * @throws InvalidCharactersException |
175 | 176 | * |
176 | - * @return int |
|
177 | + * @return string |
|
177 | 178 | */ |
178 | 179 | public function base32Decode($b32) |
179 | 180 | { |
@@ -187,6 +188,7 @@ discard block |
||
187 | 188 | /** |
188 | 189 | * Get the OTP window. |
189 | 190 | * |
191 | + * @param integer $window |
|
190 | 192 | * @return mixed |
191 | 193 | */ |
192 | 194 | public function getWindow($window = null) |
@@ -391,7 +393,7 @@ discard block |
||
391 | 393 | * |
392 | 394 | * @param string $hash |
393 | 395 | * |
394 | - * @return int |
|
396 | + * @return string |
|
395 | 397 | **/ |
396 | 398 | public function oathTruncate($hash) |
397 | 399 | { |
@@ -458,9 +460,9 @@ discard block |
||
458 | 460 | /** |
459 | 461 | * Creates a QR code url. |
460 | 462 | * |
461 | - * @param $company |
|
462 | - * @param $holder |
|
463 | - * @param $secret |
|
463 | + * @param string $company |
|
464 | + * @param string $holder |
|
465 | + * @param string $secret |
|
464 | 466 | * |
465 | 467 | * @return string |
466 | 468 | */ |
@@ -485,7 +487,7 @@ discard block |
||
485 | 487 | /** |
486 | 488 | * Validate the secret. |
487 | 489 | * |
488 | - * @param $b32 |
|
490 | + * @param string $b32 |
|
489 | 491 | */ |
490 | 492 | protected function validateSecret($b32) |
491 | 493 | { |
@@ -497,9 +499,9 @@ discard block |
||
497 | 499 | /** |
498 | 500 | * Encode a string to Base32. |
499 | 501 | * |
500 | - * @param $string |
|
502 | + * @param string $string |
|
501 | 503 | * |
502 | - * @return mixed |
|
504 | + * @return string |
|
503 | 505 | */ |
504 | 506 | public function toBase32($string) |
505 | 507 | { |