wpsc_coupons D

Total Complexity 131
Dependencies 1
Dependents 8
Total lines 754
Lines of code 417
Logical lines of code 324
Comment lines 214
Methods 22
Properties 13

Methods 22

Method Rating Maintainability Complexity Lines of code
compare_logic()
D
27
49 132
_filter_cart_item_conditions()
A
45 14 41
_callback_condition_item_name()
A
48 11 30
_callback_condition_item_quantity()
A
51 8 27
calculate_discount_without_conditions()
S
50 7 29
calculate_discount_conditions()
S
51 7 28
_callback_condition_subtotal_amount()
S
58 4 17
_callback_condition_total_quantity()
S
58 4 16
__construct()
S
51 3 26
get_eligible_items()
S
56 3 17
is_percentage()
S
79 2 3
calculate_discount()
S
67 2 9
applies_to_all_items()
S
79 2 3
is_fixed_amount()
S
79 2 3
get_total_quantity()
S
69 2 7
is_free_shipping()
S
79 2 3
calculate_subtotal()
S
69 2 7
has_conditions()
S
79 2 3
validate_coupon()
S
74 2 4
has_coupon()
S
80 1 3
calculate_free_shipping()
S
77 1 4
uses_coupons()
S
71 1 5