Metorik_Helper_Carts D

Total Complexity 168
Dependencies 5
Dependents 0
Total lines 983
Lines of code 528
Logical lines of code 292
Comment lines 256
Methods 41
Properties 1

Methods 41

Method Rating Maintainability Complexity Lines of code
recover_cart_callback()
A
47 16 31
restore_cart()
A
42 11 53
ajax_send_cart()
A
44 9 42
add_cart_email_form()
A
53 8 24
move_checkout_email_field()
A
53 8 22
add_coupon_code_to_cart_session()
A
57 8 16
get_cart_token()
S
60 7 12
check_prerequisites()
S
54 6 21
checkout_add_email_usage_notice()
S
57 6 17
add_coupon_code_to_cart()
S
62 6 11
checkout_order_processed()
S
58 5 17
set_metorik_auth_token()
S
68 6 6
get_cart_total()
S
61 5 13
locate_template()
S
58 4 16
maybe_apply_cart_recovery_coupon()
S
64 5 9
return_valid_coupons()
S
61 4 13
get_template()
S
62 4 11
get_cart_setting()
S
63 4 11
check_cart_empty_and_send()
S
56 3 19
link_customer_existing_cart()
S
69 4 6
cart_is_pending_recovery()
S
65 4 8
get_customer_email_opt_out()
S
67 4 7
unset_cart_token()
S
65 3 9
get_client_session_data()
S
64 2 11
__construct()
S
53 1 21
mark_order_as_recovered()
S
65 2 9
get_cart_fee()
S
66 2 9
get_cart_discount()
S
66 2 9
get_cart_subtotal()
S
67 2 8
set_customer_email_opt_out()
S
68 2 7
seen_add_cart_form()
S
78 2 3
set_cart_token()
S
67 2 8
get_or_set_cart_token()
S
71 2 6
get_cart_shipping()
S
66 2 9
api_recover_cart_route()
S
68 1 7
getMetorikApiUrl()
S
75 1 4
get_cart_tax()
S
77 1 4
ajax_email_opt_out()
S
81 1 3
render_email_usage_notice()
S
65 1 9
ajax_set_seen_add_cart_form()
S
80 1 3
generate_cart_token()
S
74 1 4