-
Home
-
Headless eCommerce API for Developers – CoCart
-
4.7.0
-
Code
-
Classes
- CoCart_Authentication
| Total Complexity |
108 |
| Dependencies |
7 |
| Dependents |
0 |
| Total lines |
911 |
| Lines of code |
345 |
| Logical lines of code |
196 |
| Comment lines |
463 |
| Methods |
23 |
| Properties |
3 |
Methods 23
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| perform_basic_authentication() |
B |
39 |
22 |
57 |
| check_api_permissions() |
B |
39 |
15 |
72 |
| get_ip_address() |
A |
46 |
11 |
38 |
| get_auth_header() |
S |
57 |
7 |
15 |
| authentication_fallback() |
S |
60 |
7 |
13 |
| cors_headers() |
S |
53 |
6 |
23 |
| cocart_user_logged_in() |
S |
61 |
4 |
12 |
| get_username() |
S |
62 |
4 |
12 |
| authenticate() |
S |
64 |
4 |
10 |
| is_wp_environment_local() |
S |
67 |
4 |
8 |
| send_headers() |
S |
60 |
3 |
12 |
| get_user_by_phone() |
S |
62 |
3 |
11 |
| check_authentication_error() |
S |
67 |
3 |
9 |
| __construct() |
S |
59 |
2 |
13 |
| is_basic_auth() |
S |
78 |
2 |
3 |
| extract_basic_auth() |
S |
70 |
2 |
6 |
| is_preflight() |
S |
76 |
2 |
3 |
| validate_ip() |
S |
67 |
2 |
8 |
| add_cors_headers() |
S |
71 |
1 |
6 |
| is_rest_api_request() |
S |
75 |
1 |
4 |
| set_error() |
S |
77 |
1 |
4 |
| get_error() |
S |
82 |
1 |
3 |
| set_method() |
S |
81 |
1 |
3 |