1 | <?php |
||
13 | abstract class Token extends \yrc\redis\ActiveRecord |
||
14 | { |
||
15 | /** |
||
16 | * This is our default token lifespan |
||
17 | * @const TOKEN_EXPIRATION_TIME |
||
18 | */ |
||
19 | const TOKEN_EXPIRATION_TIME = '+15 minutes'; |
||
20 | |||
21 | /** |
||
22 | * @inheritdoc |
||
23 | */ |
||
24 | public function attributes() |
||
36 | |||
37 | /** |
||
38 | * @return sodium_crypto_sign_keypair |
||
39 | */ |
||
40 | public function getSignKeyPair() |
||
46 | |||
47 | /** |
||
48 | * @return sodium_crypto_sign_publickey |
||
49 | */ |
||
50 | public function getSignPublicKey() |
||
54 | |||
55 | /** |
||
56 | * Generates a new auth and refresh token pair |
||
57 | * @param int $userId |
||
58 | * @param bool $pubkey |
||
|
|||
59 | * @return array |
||
60 | */ |
||
61 | public static function generate($userId = null) |
||
85 | |||
86 | /** |
||
87 | * Helper method to get the auth response data |
||
88 | * @return array |
||
89 | */ |
||
90 | public function getAuthResponse() |
||
99 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.