Completed
Push — master ( 387cbd...5090c5 )
by Antonio Carlos
02:29 queued 21s
created
src/Google2FA.php 1 patch
Doc Comments   +11 added lines, -10 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * Returns the current Unix Timestamp divided by the KEY_REGENERATION
121 121
      * period.
122 122
      *
123
-     * @return int
123
+     * @return double
124 124
      **/
125 125
     public function getTimestamp()
126 126
     {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      *
135 135
      * @throws InvalidCharactersException
136 136
      *
137
-     * @return int
137
+     * @return string
138 138
      */
139 139
     public function base32Decode($b32)
140 140
     {
@@ -148,6 +148,7 @@  discard block
 block discarded – undo
148 148
     /**
149 149
      * Get the OTP window.
150 150
      *
151
+     * @param integer $window
151 152
      * @return mixed
152 153
      */
153 154
     public function getWindow($window = null)
@@ -249,7 +250,7 @@  discard block
 block discarded – undo
249 250
      * @param string   $secret
250 251
      * @param string   $key - User specified key
251 252
      * @param int      $window
252
-     * @param bool|int $useTimestamp
253
+     * @param boolean $useTimestamp
253 254
      * @param null|int $oldTimestamp
254 255
      * @return bool|int
255 256
      */
@@ -300,7 +301,7 @@  discard block
 block discarded – undo
300 301
      *
301 302
      * @param string $hash
302 303
      *
303
-     * @return int
304
+     * @return string
304 305
      **/
305 306
     public function oathTruncate($hash)
306 307
     {
@@ -367,9 +368,9 @@  discard block
 block discarded – undo
367 368
     /**
368 369
      * Creates a QR code url.
369 370
      *
370
-     * @param $company
371
-     * @param $holder
372
-     * @param $secret
371
+     * @param string $company
372
+     * @param string $holder
373
+     * @param string $secret
373 374
      *
374 375
      * @return string
375 376
      */
@@ -394,7 +395,7 @@  discard block
 block discarded – undo
394 395
     /**
395 396
      * Validate the secret.
396 397
      *
397
-     * @param $b32
398
+     * @param string $b32
398 399
      */
399 400
     private function validateSecret($b32)
400 401
     {
@@ -406,9 +407,9 @@  discard block
 block discarded – undo
406 407
     /**
407 408
      * Encode a string to Base32.
408 409
      *
409
-     * @param $string
410
+     * @param string $string
410 411
      *
411
-     * @return mixed
412
+     * @return string
412 413
      */
413 414
     public function toBase32($string)
414 415
     {
Please login to merge, or discard this patch.