TaxJar_Tax_Calculation S

Total Complexity 36
Dependencies 5
Dependents 3
Total lines 234
Lines of code 138
Logical lines of code 75
Comment lines 50
Methods 16
Properties 0

Methods 16

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
66 1 7
persist_cart_calculation_results_to_order()
S
76 1 4
persist_recurring_cart_calculation_results_to_subscription()
S
76 1 4
update_tax_options()
S
64 1 10
is_cart_or_checkout_block()
S
81 1 3
is_valid_exemption_type()
S
74 1 4