WFFN_REST_Controller D

Total Complexity 211
Dependencies 9
Dependents 1
Total lines 1,238
Lines of code 920
Logical lines of code 478
Comment lines 90
Methods 44
Properties 4

Methods 44

Method Rating Maintainability Complexity Lines of code
render_input_fields()
B
40 20 61
strip_group_rule_keys()
B
44 18 43
intervals_between()
B
39 15 66
maybe_first_date()
A
50 12 26
maybe_last_date()
A
50 12 26
get_formatted_variations()
A
48 10 31
rectify_posted_rules()
A
52 9 22
get_product_from_conditions()
A
55 9 20
input_user_select()
A
46 7 36
input_cart_product_select()
A
42 6 51
input_product_select()
S
44 6 44
get_interval_format_query()
S
50 6 28
date_format()
S
54 6 23
format_rules_select()
S
56 6 16
get_coupons_from_conditions()
S
60 6 13
missing_intervals()
S
53 5 23
maybe_interval_exists()
S
63 6 10
get_quarter_by_month()
S
57 4 18
input_chosen_select()
S
52 3 24
input_coupon_select()
S
53 3 23
input_cart_category_select()
S
53 3 22
input_coupon_exist()
S
53 3 21
input_select()
S
53 3 21
update_last_update_time()
S
64 4 9
get_two_date_interval()
S
61 3 12
get_total_intervals()
S
62 3 9
strip_product_data()
S
63 2 11
get_category_based_rules()
S
54 1 25
input_coupon_text_match()
S
55 1 21
input_item_text_match()
S
55 1 20
base_url()
S
55 1 20
input_date()
S
56 1 19
input_time()
S
57 1 18
input_text()
S
58 1 17
rule_unavailable()
S
64 2 9
default_date()
S
64 2 10
get_url_rewrite_slug()
S
74 2 4
get_percentage()
S
68 2 7
first_day_of_week()
S
60 1 13
last_day_of_week()
S
60 1 13
string_to_date()
S
74 1 4
convert_local_datetime_to_gmt()
S
72 1 5
get_base_url()
S
80 1 3
sanitize_custom()
S
79 1 3