@@ -124,7 +124,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | { |