WC_REST_General_Settings_V4_Controller B

Total Complexity 85
Dependencies 4
Dependents 0
Total lines 662
Lines of code 432
Logical lines of code 173
Comment lines 152
Methods 19
Properties 2

Methods 19

Method Rating Maintainability Complexity Lines of code
validate_setting_value()
B
39 19 69
update_item()
A
43 11 46
sanitize_setting_value()
A
52 12 24
get_general_settings_data()
A
44 10 46
validate_country_or_state_code()
S
56 5 18
get_field_options()
S
60 5 14
get_item_schema()
S
41 1 70
transform_setting_to_field()
S
53 4 23
get_country_state_options()
S
58 4 16
get_field_schema()
S
50 1 33
get_group_order()
S
70 3 6
register_routes()
S
56 1 20
get_settings_general_instance()
S
72 2 6
get_currency_options()
S
63 2 10
get_update_args()
S
60 1 14
get_item_permissions_check()
S
79 1 3
update_item_permissions_check()
S
79 1 3
get_item()
S
76 1 4
normalize_field_type()
S
68 1 7