-
Home
-
Headless WooCommerce Made Easy with CoCart
-
4.1.0
-
Code
-
Classes
- CoCart_Authentication
Total Complexity |
88 |
Dependencies |
6 |
Dependents |
6 |
Total lines |
749 |
Lines of code |
293 |
Logical lines of code |
160 |
Comment lines |
408 |
Methods |
19 |
Properties |
3 |
Methods 19
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
check_api_permissions() |
B |
39 |
15 |
72 |
perform_basic_authentication() |
A |
48 |
11 |
30 |
cors_headers() |
A |
44 |
8 |
44 |
cocart_key_header() |
S |
55 |
7 |
18 |
get_auth_header() |
S |
57 |
7 |
15 |
authentication_fallback() |
S |
60 |
7 |
13 |
get_username() |
S |
62 |
4 |
12 |
cocart_user_logged_in() |
S |
62 |
4 |
11 |
authenticate() |
S |
64 |
4 |
10 |
is_wp_environment_local() |
S |
67 |
4 |
8 |
get_user_by_phone() |
S |
62 |
3 |
11 |
check_authentication_error() |
S |
67 |
3 |
9 |
__construct() |
S |
61 |
2 |
11 |
is_preflight() |
S |
76 |
2 |
3 |
allow_all_cors() |
S |
68 |
2 |
7 |
is_rest_api_request() |
S |
64 |
2 |
9 |
get_error() |
S |
82 |
1 |
3 |
set_error() |
S |
77 |
1 |
4 |
set_method() |
S |
81 |
1 |
3 |