TaxJar_Tax_Calculation S

Total Complexity 34
Dependencies 5
Dependents 3
Total lines 222
Lines of code 128
Logical lines of code 69
Comment lines 50
Methods 14
Properties 0

Methods 14

Method Rating Maintainability Complexity Lines of code
is_postal_code_valid()
S
49 5 31
calculate_renewal_order_totals()
S
56 5 19
should_calculate_cart_tax()
S
60 4 13
get_tax_code_from_class()
S
62 3 12
should_calculate_on_page()
S
78 3 3
__construct()
S
68 2 8
maybe_calculate_order_taxes()
S
68 2 7
maybe_calculate_cart_taxes()
S
69 2 7
is_cart_or_checkout_page()
S
79 2 3
is_mini_cart()
S
79 2 3
init_hooks()
S
71 1 5
update_tax_options()
S
64 1 10
is_cart_or_checkout_block()
S
81 1 3
is_valid_exemption_type()
S
74 1 4