-
Home
-
LearnPress – WordPress LMS Plugin
-
4.2.2.2
-
Code
-
Classes
- LP_Cart
Total Complexity |
45 |
Dependencies |
5 |
Dependents |
3 |
Total lines |
473 |
Lines of code |
199 |
Logical lines of code |
118 |
Comment lines |
190 |
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 |
__construct() |
S |
68 |
2 |
7 |
init() |
S |
75 |
2 |
5 |
get_cart_id() |
S |
73 |
2 |
4 |
instance() |
S |
72 |
2 |
6 |
remove_item() |
S |
64 |
2 |
10 |
maybe_set_cart_cookies() |
S |
78 |
2 |
4 |
update_session() |
S |
62 |
1 |
13 |
get_cart() |
S |
80 |
1 |
3 |
set_cart_cookies() |
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 |
65 |
1 |
9 |
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 |