Total Complexity | 18 |
Dependencies | 4 |
Dependents | 0 |
Total lines | 132 |
Lines of code | 104 |
Logical lines of code | 40 |
Comment lines | 1 |
Methods | 8 |
Properties | 3 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
determine_current_user() | 59 | 6 | 13 | |
get_user_from_token() | 48 | 4 | 37 | |
generate_token() | 51 | 2 | 29 | |
rest_pre_dispatch() | 72 | 2 | 6 | |
__construct() | 74 | 1 | 5 | |
define_public_hooks() | 72 | 1 | 5 | |
run() | 82 | 1 | 3 | |
add_api_routes() | 70 | 1 | 6 |