WC_Stripe_Customer D

Total Complexity 136
Dependencies 13
Dependents 16
Total lines 996
Lines of code 558
Logical lines of code 285
Comment lines 291
Methods 34
Properties 3

Methods 34

Method Rating Maintainability Complexity Lines of code
get_billing_data_field()
A
44 15 46
add_source()
A
43 9 48
validate_create_customer_request()
A
49 10 29
generate_customer_request()
A
42 8 54
get_create_customer_required_fields()
A
46 8 39
map_customer_data()
A
45 7 41
create_customer()
A
51 8 25
get_payment_methods()
S
51 7 26
get_sources()
S
53 6 23
attach_source()
S
55 6 20
update_customer()
S
55 5 19
maybe_create_customer()
S
60 4 13
delete_source()
S
61 4 12
get_customer_preferred_locale()
S
48 2 35
detach_payment_method()
S
62 3 12
clear_cache()
S
62 3 11
set_default_payment_method()
S
58 2 17
set_id()
S
68 3 7
is_no_such_customer_error()
S
69 3 7
is_source_already_attached_error()
S
69 3 7
set_default_source()
S
59 2 15
__construct()
S
72 2 6
get_user()
S
78 2 3
get_existing_customer()
S
65 2 8
update_or_create_customer()
S
69 2 7
get_customer_locale()
S
78 2 3
get_id()
S
82 1 3
get_user_id()
S
80 1 3
set_user_id()
S
80 1 3
set_customer_data()
S
81 1 3
get_id_from_meta()
S
79 1 3
update_id_in_meta()
S
78 1 3
delete_id_from_meta()
S
79 1 3
recreate_customer()
S
76 1 4