Total Complexity | 45 |
Dependencies | 6 |
Dependents | 1 |
Total lines | 314 |
Lines of code | 246 |
Logical lines of code | 85 |
Comment lines | 69 |
Methods | 13 |
Properties | 2 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
prepare_item_for_database() | 42 | 23 | 47 | |
get_item_schema() | 39 | 1 | 81 | |
add_cart_content() | 60 | 5 | 12 | |
get_cart_content() | 52 | 4 | 23 | |
update_cart_content() | 58 | 4 | 13 | |
register_routes() | 49 | 1 | 38 | |
__construct() | 80 | 1 | 3 | |
prepare_item_for_response() | 70 | 1 | 6 | |
delete_cart_content() | 68 | 1 | 7 | |
add_cart_permissions_check() | 76 | 1 | 4 | |
get_cart_permissions_check() | 76 | 1 | 4 | |
delete_cart_permissions_check() | 76 | 1 | 4 | |
update_cart_permissions_check() | 76 | 1 | 4 |