WC_Cart_Totals C

Total Complexity 104
Dependencies 5
Dependents 1
Total lines 849
Lines of code 413
Logical lines of code 264
Comment lines 305
Methods 29
Properties 10

Methods 29

Method Rating Maintainability Complexity Lines of code
get_fees_from_cart()
A
44 10 43
calculate_item_subtotals()
A
46 10 36
calculate_discounts()
A
46 8 38
get_merged_taxes()
A
54 8 21
calculate_item_totals()
S
48 6 31
sort_coupons_callback()
S
61 7 12
get_coupons_from_cart()
S
55 5 21
get_tax_class_costs()
S
54 5 20
get_item_costs_by_tax_class()
S
58 4 16
remove_item_base_taxes()
S
60 4 13
combine_item_taxes()
S
62 4 12
adjust_non_base_location_price()
S
61 4 11
get_shipping_from_cart()
S
56 3 17
get_items_from_cart()
S
57 2 16
__construct()
S
66 3 8
get_item_tax_rates()
S
65 3 8
get_default_item_props()
S
59 1 16
get_total()
S
74 2 4
get_totals()
S
79 2 3
round_merged_taxes()
S
70 2 6
get_discounted_price_in_cents()
S
71 2 5
calculate_totals()
S
64 2 8
set_total()
S
80 1 3
get_values_for_total()
S
79 1 3
calculate()
S
73 1 6
get_default_shipping_props()
S
64 1 10
get_default_fee_props()
S
66 1 9
calculate_fee_totals()
S
64 1 9
calculate_shipping_totals()
S
66 1 8