WC_Cart_Stock_Reducer D

Total Complexity 210
Dependencies 4
Dependents 0
Total lines 1,063
Lines of code 708
Logical lines of code 428
Comment lines 237
Methods 41
Properties 8

Methods 41

Method Rating Maintainability Complexity Lines of code
remove_expired_item()
A
45 11 40
add_to_cart()
A
50 9 25
add_cart_item()
A
52 9 24
expiration_time_cache()
A
54 9 22
get_virtual_stock_available()
A
50 8 28
get_item_managing_stock()
A
53 8 25
adjust_cart_expiration()
A
54 8 20
replace_stock_pending_text()
S
57 8 15
get_availability_class()
S
58 8 15
get_availability_text()
S
57 8 15
expire_items()
S
52 7 25
add_cart_validation()
S
52 7 23
product_get_stock_quantity()
S
55 7 20
__construct()
S
41 5 50
product_get_stock_status()
S
55 7 19
is_expired()
S
56 7 18
validate_expire_time_field()
S
56 7 16
remove_expire_notice()
S
55 6 19
get_undo_url()
S
56 6 17
expire_notice_added()
S
57 6 17
check_cart_items()
S
56 6 15
find_countdown_language()
S
58 5 15
items_in_cart()
S
62 5 11
init_form_fields()
S
41 1 64
woocommerce_post_class()
S
63 5 10
countdown()
S
60 4 13
get_field_managing_stock()
S
61 3 14
quantity_input_args()
S
61 3 12
product_available_variation()
S
61 3 12
countdown_footer()
S
60 3 12
update_cart_validation()
S
64 3 9
trace_contains()
S
65 3 9
action_links()
S
67 2 7
add_countdown_to_notice()
S
69 2 7
add_to_cart_message()
S
71 2 6
load_plugin_textdomain()
S
66 2 7
get_customer_id()
S
66 2 9
display_errors()
S
68 2 9
get_actual_stock_available()
S
71 1 6
woocommerce_init()
S
73 1 5
check_expired_items()
S
82 1 3