-
Home
-
LearnPress – WordPress LMS Plugin
-
4.2.7.3
-
Code
-
Classes
- LP_Cart
| Total Complexity |
45 |
| Dependencies |
6 |
| Dependents |
3 |
| Total lines |
470 |
| Lines of code |
189 |
| Logical lines of code |
114 |
| Comment lines |
195 |
| Methods |
23 |
| Properties |
5 |
Methods 23
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| add_to_cart() |
S |
47 |
6 |
38 |
| 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 |
| maybe_set_cart_cookies() |
S |
78 |
2 |
4 |
| remove_item() |
S |
64 |
2 |
10 |
| get_cart_id() |
S |
73 |
2 |
4 |
| get_cart_from_session() |
S |
65 |
2 |
9 |
| instance() |
S |
72 |
2 |
6 |
| set_cart_cookies() |
S |
80 |
1 |
3 |
| get_cart() |
S |
81 |
1 |
3 |
| update_session() |
S |
79 |
1 |
3 |
| get_items() |
S |
81 |
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 |