-
Home
-
Headless WooCommerce Made Easy with CoCart
-
3.7.11
-
Code
-
Classes
- CoCart_Authentication
Total Complexity |
57 |
Dependencies |
3 |
Dependents |
5 |
Total lines |
419 |
Lines of code |
178 |
Logical lines of code |
110 |
Comment lines |
205 |
Methods |
13 |
Properties |
3 |
Methods 13
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
check_api_permissions() |
A |
44 |
15 |
41 |
perform_basic_authentication() |
A |
49 |
10 |
28 |
authentication_fallback() |
S |
60 |
7 |
13 |
__construct() |
S |
59 |
4 |
13 |
cors_headers() |
S |
51 |
3 |
28 |
authenticate() |
S |
64 |
4 |
10 |
is_wp_environment_local() |
S |
67 |
4 |
8 |
cocart_user_logged_in() |
S |
67 |
2 |
8 |
is_rest_api_request() |
S |
64 |
2 |
9 |
check_authentication_error() |
S |
72 |
2 |
6 |
allow_all_cors() |
S |
68 |
2 |
7 |
set_error() |
S |
77 |
1 |
4 |
get_error() |
S |
82 |
1 |
3 |