-
Home
-
Headless eCommerce API for Developers – CoCart
-
4.7.0
-
Code
-
Classes
- CoCart_Product_Reviews_Controller
| Total Complexity |
101 |
| Dependencies |
5 |
| Dependents |
0 |
| Total lines |
934 |
| Lines of code |
604 |
| Logical lines of code |
277 |
| Comment lines |
230 |
| Methods |
15 |
| Properties |
2 |
Methods 15
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| create_item() |
B |
35 |
20 |
76 |
| get_items() |
B |
36 |
16 |
78 |
| 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 |
38 |
2 |
84 |
| 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 |