WC_Connect_Service_Settings_Store C

Total Complexity 111
Dependencies 11
Dependents 14
Total lines 665
Lines of code 416
Logical lines of code 267
Comment lines 159
Methods 34
Properties 3

Methods 34

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
is_eligible_for_migration()
A
56 8 16
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
update_account_settings()
S
63 2 10
create_predefined_packages()
S
67 2 8
get_predefined_packages_for_service()
S
69 2 7
create_packages()
S
67 2 8
set_selected_payment_method_id()
S
64 2 10
can_user_manage_payment_methods()
S
79 2 3
get_enabled_services()
S
70 2 7
get_store_options()
S
61 1 12
get_service_settings()
S
78 1 3
get_packages()
S
80 1 3
set_preferred_paper_size()
S
79 1 3
update_packages()
S
80 1 3
get_predefined_packages()
S
80 1 3
update_origin_address()
S
79 1 3
update_predefined_packages()
S
80 1 3
get_selected_payment_method_id()
S
75 1 4
add_labels_to_order()
S
68 1 7
__construct()
S
74 1 5