WC_Connect_Service_Settings_Store C

Total Complexity 103
Dependencies 9
Dependents 14
Total lines 641
Lines of code 400
Logical lines of code 256
Comment lines 156
Methods 33
Properties 3

Methods 33

Method Rating Maintainability Complexity Lines of code
get_enabled_services_by_ids()
A
44 11 41
translate_unit()
A
53 10 25
migrate_legacy_services()
A
47 8 36
get_package_lookup()
S
56 6 19
sort_services()
S
62 6 12
validate_and_possibly_update_settings()
S
54 5 21
update_label_order_meta_data()
S
55 5 18
get_account_settings()
S
56 4 19
try_deserialize_labels_json()
S
59 4 17
get_label_order_meta_data()
S
60 4 14
get_origin_address()
S
51 3 27
update_destination_address()
S
58 3 14
try_recover_invalid_json_string()
S
60 3 12
try_recover_invalid_json_array()
S
60 3 12
get_preferred_paper_size()
S
62 3 11
create_packages()
S
67 2 8
create_predefined_packages()
S
67 2 8
get_enabled_services()
S
70 2 7
can_user_manage_payment_methods()
S
79 2 3
set_selected_payment_method_id()
S
64 2 10
get_predefined_packages_for_service()
S
69 2 7
update_account_settings()
S
63 2 10
get_store_options()
S
61 1 12
update_predefined_packages()
S
80 1 3
get_predefined_packages()
S
80 1 3
__construct()
S
74 1 5
update_packages()
S
80 1 3
get_packages()
S
80 1 3
get_service_settings()
S
78 1 3
add_labels_to_order()
S
68 1 7
set_preferred_paper_size()
S
79 1 3
get_selected_payment_method_id()
S
75 1 4
update_origin_address()
S
79 1 3