-
Home
-
LearnPress – WordPress LMS Plugin
-
4.2.6.9
-
Code
-
Classes
- LP_Cart
Total Complexity |
46 |
Dependencies |
5 |
Dependents |
3 |
Total lines |
470 |
Lines of code |
193 |
Logical lines of code |
117 |
Comment lines |
195 |
Methods |
23 |
Properties |
5 |
Methods 23
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
add_to_cart() |
A |
45 |
7 |
42 |
calculate_totals() |
S |
48 |
5 |
33 |
generate_cart_id() |
S |
59 |
5 |
13 |
get_cart_for_session() |
S |
62 |
3 |
11 |
__construct() |
S |
68 |
2 |
7 |
get_cart_from_session() |
S |
65 |
2 |
9 |
init() |
S |
75 |
2 |
5 |
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 |
79 |
1 |
3 |
get_cart() |
S |
81 |
1 |
3 |
set_cart_cookies() |
S |
80 |
1 |
3 |
get_subtotal() |
S |
75 |
1 |
4 |
get_total() |
S |
75 |
1 |
4 |
get_item_subtotal() |
S |
69 |
1 |
6 |
empty_cart() |
S |
65 |
1 |
9 |
is_empty() |
S |
75 |
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 |