-
Home
-
Headless WooCommerce Made Easy with CoCart
-
4.0.2
-
Code
-
Classes
- CoCart_Product_Reviews_Controller
Total Complexity |
102 |
Dependencies |
5 |
Dependents |
0 |
Total lines |
917 |
Lines of code |
613 |
Logical lines of code |
279 |
Comment lines |
203 |
Methods |
15 |
Properties |
2 |
Methods 15
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
create_item() |
B |
35 |
20 |
76 |
get_items() |
B |
35 |
17 |
81 |
prepare_item_for_response() |
A |
45 |
13 |
40 |
handle_status_param() |
A |
49 |
11 |
33 |
prepare_item_for_database() |
A |
50 |
10 |
29 |
prepare_status_response() |
S |
58 |
7 |
18 |
get_item_schema() |
S |
37 |
2 |
90 |
get_collection_params() |
S |
40 |
1 |
78 |
get_review() |
S |
56 |
5 |
18 |
register_routes() |
S |
40 |
1 |
76 |
normalize_query_param() |
S |
58 |
4 |
18 |
prepare_links() |
S |
53 |
3 |
23 |
check_review_exists() |
S |
60 |
3 |
12 |
create_item_permissions_check() |
S |
60 |
3 |
12 |
get_item() |
S |
65 |
2 |
9 |