TaxJar_Tax_Calculation D

Total Complexity 138
Dependencies 9
Dependents 3
Total lines 821
Lines of code 575
Logical lines of code 312
Comment lines 119
Methods 22
Properties 0

Methods 22

Method Rating Maintainability Complexity Lines of code
calculate_tax()
D
28
29 146
calculate_totals()
B
34 21 90
get_address()
A
56 12 16
override_woocommerce_tax_rates()
A
51 10 25
get_taxable_address()
A
47 8 33
get_line_items()
A
47 8 33
append_base_address_to_customer_taxable_address()
A
51 8 24
should_calculate_cart_tax()
S
59 7 13
is_postal_code_valid()
S
49 5 31
calculate_renewal_order_totals()
S
56 5 19
create_or_update_tax_rate()
S
46 3 39
smartcalcs_request()
S
57 4 15
smartcalcs_cache_request()
S
62 3 11
allow_street_address_for_matched_rates()
S
56 2 18
get_line_item()
S
67 3 8
get_tax_code_from_class()
S
67 2 8
maybe_calculate_order_taxes()
S
68 2 7
__construct()
S
70 2 7
init_hooks()
S
65 1 8
is_valid_exemption_type()
S
74 1 4
update_tax_options()
S
64 1 10
get_address_from_order()
S
64 1 10