Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | abstract class RefreshToken extends \yrc\redis\ActiveRecord |
||
15 | { |
||
16 | /** |
||
17 | * This is our default token lifespan |
||
18 | * @const TOKEN_EXPIRATION_TIME |
||
19 | */ |
||
20 | const TOKEN_EXPIRATION_TIME = '+30 days'; |
||
21 | |||
22 | /** |
||
23 | * @inheritdoc |
||
24 | */ |
||
25 | public function attributes() |
||
26 | { |
||
27 | return [ |
||
28 | 'id', |
||
29 | 'user_id', |
||
30 | 'token', |
||
31 | 'expires_at' |
||
32 | ]; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Creates a new refresh token that operated independently of the access token |
||
37 | * @param User $user |
||
|
|||
38 | * @return string |
||
39 | */ |
||
40 | public static function create($user) |
||
54 | } |
||
55 | } |
||
56 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths