Completed
Pull Request — master (#62)
by Tom
01:55
created
src/Google2FA.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * Returns the current Unix Timestamp divided by the KEY_REGENERATION
116 116
      * period.
117 117
      *
118
-     * @return int
118
+     * @return double
119 119
      **/
120 120
     public function getTimestamp()
121 121
     {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      *
130 130
      * @throws InvalidCharactersException
131 131
      *
132
-     * @return int
132
+     * @return string
133 133
      */
134 134
     public function base32Decode($b32)
135 135
     {
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * @param string   $b32seed
221 221
      * @param string   $key - User specified key
222 222
      * @param int      $window
223
-     * @param bool|int $useTimestamp
223
+     * @param boolean $useTimestamp
224 224
      * @param null|int $oldTimestamp
225 225
      * @return bool|int
226 226
      */
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      *
272 272
      * @param string $hash
273 273
      *
274
-     * @return int
274
+     * @return string
275 275
      **/
276 276
     public function oathTruncate($hash)
277 277
     {
@@ -338,9 +338,9 @@  discard block
 block discarded – undo
338 338
     /**
339 339
      * Creates a QR code url.
340 340
      *
341
-     * @param $company
342
-     * @param $holder
343
-     * @param $secret
341
+     * @param string $company
342
+     * @param string $holder
343
+     * @param string $secret
344 344
      *
345 345
      * @return string
346 346
      */
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     /**
366 366
      * Validate the secret.
367 367
      *
368
-     * @param $b32
368
+     * @param string $b32
369 369
      */
370 370
     private function validateSecret($b32)
371 371
     {
@@ -377,9 +377,9 @@  discard block
 block discarded – undo
377 377
     /**
378 378
      * Encode a string to Base32.
379 379
      *
380
-     * @param $string
380
+     * @param string $string
381 381
      *
382
-     * @return mixed
382
+     * @return string
383 383
      */
384 384
     public function toBase32($string)
385 385
     {
Please login to merge, or discard this patch.