WC_GZD_Coupon_Helper D

Total Complexity 139
Dependencies 5
Dependents 3
Total lines 811
Lines of code 464
Logical lines of code 270
Comment lines 209
Methods 40
Properties 2

Methods 40

Method Rating Maintainability Complexity Lines of code
allow_order_fee_total_incl_tax()
A
44 15 41
remove_taxes_for_vouchers()
A
43 13 45
order_voucher_total()
A
53 8 21
observe_voucher_status()
A
57 8 18
get_order_item_fee_by_coupon()
S
59 7 14
get_order_item_coupon_by_fee()
S
60 6 14
__construct()
S
45 4 40
order_has_voucher()
S
60 5 13
legacy_before_recalculate_totals()
S
50 4 27
voucher_discount()
S
63 5 10
register_coupon_as_fee()
S
60 4 13
get_fee_data_from_coupon()
S
55 3 19
get_voucher_data_from_cart()
S
60 3 13
get_tax_display_mode()
S
61 3 12
coupon_save()
S
62 3 12
round_line_tax()
S
69 3 6
voucher_includes_shipping_costs()
S
64 3 9
order_item_coupon_is_voucher()
S
67 3 7
coupon_is_voucher()
S
64 3 9
fee_is_voucher()
S
65 3 8
vouchers_as_fees()
S
67 3 8
coupon_item_save()
S
69 3 7
remove_order_item_fee_taxes()
S
73 2 5
fee_item_save()
S
65 2 9
get_voucher_by_code()
S
68 2 7
legacy_adjust_item_total()
S
71 2 6
instance()
S
72 2 6
legacy_shipments_order_has_voucher()
S
78 2 3
on_apply_voucher()
S
74 2 5
is_valid()
S
72 2 6
exclude_vouchers_from_forced_tax()
S
71 2 6
add_voucher_to_order()
S
60 1 12
voucher_fragments()
S
76 1 4
convert_order_item_coupon_to_voucher()
S
70 1 6
__clone()
S
78 1 3
__wakeup()
S
78 1 3
round_at_subtotal()
S
79 1 3
convert_coupon_to_voucher()
S
76 1 4
coupon_options()
S
68 1 7
order_supports_fee_vouchers()
S
78 1 3