LP_Cart S

Total Complexity 47
Dependencies 5
Dependents 3
Total lines 471
Lines of code 206
Logical lines of code 124
Comment lines 180
Methods 23
Properties 5

Methods 23

Method Rating Maintainability Complexity Lines of code
add_to_cart()
A
46 7 41
calculate_totals()
S
48 5 33
generate_cart_id()
S
59 5 13
get_cart_for_session()
S
62 3 11
set_cart_cookies()
S
66 3 8
__construct()
S
68 2 7
init()
S
66 2 8
get_cart_id()
S
73 2 4
instance()
S
72 2 6
maybe_set_cart_cookies()
S
78 2 4
remove_item()
S
64 2 10
update_session()
S
62 1 13
get_cart()
S
80 1 3
get_cart_from_session()
S
70 1 6
get_subtotal()
S
74 1 4
get_total()
S
74 1 4
get_item_subtotal()
S
69 1 6
empty_cart()
S
67 1 8
is_empty()
S
76 1 4
get_checkout_url()
S
75 1 4
needs_payment()
S
74 1 4
destroy()
S
91 1 2
get_items()
S
81 1 3