WC_Payments_Customer_Service A

Total Complexity 70
Dependencies 12
Dependents 9
Total lines 548
Lines of code 250
Logical lines of code 130
Comment lines 223
Methods 18
Properties 5

Methods 18

Method Rating Maintainability Complexity Lines of code
get_prepared_customer_data()
A
47 9 35
map_customer_data()
S
45 6 41
get_payment_methods_for_customer()
S
52 7 25
add_customer_id_to_user()
S
60 7 13
get_customer_id_by_user_id()
S
61 7 12
maybe_migrate_deprecated_customer()
S
59 5 14
create_customer_for_user()
S
62 4 11
recreate_customer()
S
64 4 9
update_customer_for_user()
S
61 3 14
get_customer_id_for_order()
S
61 3 12
get_or_create_customer_id_from_order()
S
62 3 10
clear_cached_payment_methods_for_user()
S
63 3 10
update_payment_method_with_billing_details_from_order()
S
64 2 11
get_customer_id_option()
S
75 2 5
update_user_customer_id()
S
68 2 7
set_default_payment_method_for_customer()
S
66 1 10
delete_cached_payment_methods()
S
81 1 3
__construct()
S
66 1 8