Alg_WC_OMA_Core D

Total Complexity 167
Dependencies 6
Dependents 1
Total lines 988
Lines of code 591
Logical lines of code 245
Comment lines 346
Methods 45
Properties 0

Methods 45

Method Rating Maintainability Complexity Lines of code
get_min_max_amount_by_user_role()
A
48 14 30
check_product_max_amount()
A
45 9 42
get_memberships()
A
46 8 38
add_hooks()
A
46 8 35
block_checkout()
A
58 9 13
add_shipping_script()
S
57 6 19
get_all_user_roles()
S
56 6 16
display_login_requirement_notice()
S
58 6 14
get_shipping_options()
S
59 5 15
add_disable_checkout_script()
S
52 3 42
add_to_cart_simplified()
S
51 4 27
hide_add_to_cart_loop()
S
55 4 20
get_shipping_methods_instances()
S
55 4 20
process_require_all_option()
S
63 5 10
check_limits_for_amount_type_in_result()
S
63 5 10
hide_variation_add_to_cart_single()
S
56 3 27
add_add_to_cart_single_variation_data()
S
61 4 11
set_cookie_on_cart()
S
67 4 8
check_min_max_amount()
S
68 4 6
get_title()
S
63 4 9
get_min_max_amount_data()
S
58 3 14
array_flatten()
S
63 3 11
check_checkout_notices()
S
62 3 11
get_enabled_amount_types()
S
71 3 5
is_cart_empty()
S
78 3 3
set_cookie_if_has_notices()
S
63 3 10
get_enabled_amount_limits()
S
71 3 5
wipe_notices_if_login_requirement_is_enabled()
S
65 3 9
add_to_log()
S
71 3 5
hide_add_to_cart_single()
S
59 2 14
get_shipping_zones()
S
63 2 11
validate_max_on_add_to_cart()
S
63 2 11
checkout_process_notices_rest_api()
S
62 2 11
get_shipping_methods()
S
69 2 7
__construct()
S
64 2 9
get_enabled_user_roles()
S
71 2 5
get_current_user_roles()
S
75 2 4
checkout_process_notices()
S
72 2 5
set_cookie_on_cart_updated()
S
78 1 4
get_amount_step()
S
83 1 3
get_amount_custom_atts()
S
79 1 3
get_amounts_desc()
S
74 1 4
remove_notices_on_added_to_cart()
S
100 1 8
array_filter_true()
S
80 1 3
is_equal()
S
75 1 4