Alg_WC_OMA_Core D

Total Complexity 161
Dependencies 3
Dependents 0
Total lines 883
Lines of code 486
Logical lines of code 242
Comment lines 352
Methods 47
Properties 0

Methods 47

Method Rating Maintainability Complexity Lines of code
get_min_max_amount_by_user_role()
A
48 14 30
add_hooks()
A
44 13 40
get_notices()
A
49 9 30
check_product_max_amount()
S
55 7 18
get_memberships()
S
49 6 30
add_shipping_script()
S
57 6 18
get_placeholders()
S
54 6 18
get_shipping_options()
S
59 5 15
get_all_user_roles()
S
60 5 12
get_shipping_methods_instances()
S
55 4 20
check_limits_for_amount_type_in_result()
S
63 5 10
block_checkout()
S
62 5 10
process_require_all_option()
S
63 5 10
hide_add_to_cart_loop()
S
60 4 13
add_to_cart_simplified()
S
53 3 24
get_title()
S
63 4 9
get_message_option_id()
S
63 4 10
check_min_max_amount()
S
68 4 6
get_min_max_amount_data()
S
58 3 14
array_flatten()
S
63 3 11
add_to_log()
S
71 3 5
get_enabled_amount_types()
S
71 3 5
get_enabled_amount_limits()
S
71 3 5
is_cart_empty()
S
78 3 3
output_notices()
S
64 3 10
get_shipping_zones()
S
63 2 11
__construct()
S
66 2 8
get_default_message()
S
65 2 9
hide_add_to_cart_single()
S
67 2 7
get_shipping_methods()
S
69 2 7
get_notice_content()
S
64 2 8
get_enabled_user_roles()
S
71 2 5
validate_max_on_add_to_cart()
S
71 2 6
get_current_user_roles()
S
75 2 4
checkout_notices()
S
78 1 3
checkout_process_notices()
S
80 1 3
array_filter_true()
S
80 1 3
is_equal()
S
75 1 4
cart_notices()
S
78 1 3
get_amount_step()
S
83 1 3
get_amount_custom_atts()
S
79 1 3
get_amounts_desc()
S
74 1 4
product_page_text()
S
81 1 3
checkout_text()
S
81 1 3
cart_text()
S
81 1 3
remove_notices_on_added_to_cart()
S
100 1 7
product_page_notices()
S
78 1 3