-
Home
-
WooCommerce
-
10.2.2
-
Code
-
Classes
- WC_Cart_Session
| Total Complexity |
90 |
| Dependencies |
5 |
| Dependents |
1 |
| Total lines |
627 |
| Lines of code |
320 |
| Logical lines of code |
194 |
| Comment lines |
238 |
| Methods |
15 |
| Properties |
1 |
Methods 15
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| get_cart_from_session() |
C |
33 |
27 |
86 |
| populate_cart_from_order() |
B |
36 |
17 |
77 |
| set_cart_cookies() |
S |
52 |
7 |
26 |
| set_session() |
S |
57 |
7 |
15 |
| dedupe_cookies() |
S |
51 |
6 |
28 |
| maybe_set_cart_cookies() |
S |
62 |
5 |
11 |
| get_saved_cart() |
S |
63 |
4 |
10 |
| persistent_cart_update() |
S |
63 |
3 |
11 |
| init() |
S |
57 |
2 |
16 |
| find_cookie_by_name() |
S |
67 |
3 |
8 |
| persistent_cart_destroy() |
S |
72 |
3 |
5 |
| __construct() |
S |
70 |
2 |
6 |
| get_cart_for_session() |
S |
67 |
2 |
8 |
| set_cart() |
S |
81 |
1 |
3 |
| destroy_cart_session() |
S |
64 |
1 |
10 |