-
Home
-
LearnPress – WordPress LMS Plugin
-
4.0.7
-
Code
-
Classes
- LP_Cart
| Total Complexity |
63 |
| Dependencies |
3 |
| Dependents |
2 |
| Total lines |
491 |
| Lines of code |
233 |
| Logical lines of code |
140 |
| Comment lines |
162 |
| Methods |
24 |
| Properties |
5 |
Methods 24
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| get_cart_from_session() |
A |
51 |
9 |
25 |
| purchase_course_handler() |
S |
51 |
6 |
26 |
| add_to_cart() |
S |
49 |
5 |
33 |
| instance() |
S |
56 |
6 |
18 |
| generate_cart_id() |
S |
59 |
5 |
13 |
| calculate_totals() |
S |
55 |
4 |
19 |
| set_cart_cookies() |
S |
66 |
3 |
8 |
| get_cart_for_session() |
S |
64 |
3 |
10 |
| get_cart() |
S |
65 |
3 |
9 |
| __construct() |
S |
61 |
2 |
11 |
| maybe_set_cart_cookies() |
S |
78 |
2 |
4 |
| remove_item() |
S |
64 |
2 |
10 |
| get_cart_id() |
S |
77 |
2 |
3 |
| init() |
S |
83 |
1 |
3 |
| update_session() |
S |
80 |
1 |
3 |
| get_items() |
S |
77 |
1 |
4 |
| 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 |
79 |
1 |
3 |
| get_checkout_url() |
S |
75 |
1 |
4 |
| needs_payment() |
S |
78 |
1 |
3 |
| destroy() |
S |
91 |
1 |
2 |