FrmSquareLiteConnectHelper C

Total Complexity 113
Dependencies 7
Dependents 6
Total lines 707
Lines of code 442
Logical lines of code 218
Comment lines 170
Methods 50
Properties 1

Methods 50

Method Rating Maintainability Complexity Lines of code
render_settings_for_mode()
A
44 6 54
post_to_connect_server()
S
51 7 27
check_server_for_oauth_merchant_id()
S
51 7 26
get_oauth_redirect_url()
S
53 6 23
get_merchant_currency()
S
59 5 14
render_settings_container()
S
50 3 37
post_with_authenticated_body()
S
57 4 17
verify()
S
58 4 15
get_location_id()
S
60 4 14
get_event()
S
61 4 12
get_mode_value_from_post()
S
66 4 7
maybe_fix_wpml_url()
S
67 4 7
maybe_get_pro_license()
S
65 4 9
get_unprocessed_event_ids()
S
68 3 7
get_subscription()
S
67 3 7
validate_response()
S
77 3 3
build_headers_for_post()
S
59 2 14
get_mode_value()
S
75 2 4
get_merchant_id()
S
70 2 6
at_least_one_mode_is_setup()
S
78 2 3
get_active_mode_option_name_suffix()
S
71 2 6
check_for_redirects()
S
74 2 5
strip_lang_from_url()
S
68 2 7
try_to_extend_server_timeout()
S
73 2 5
create_payment()
S
62 1 12
generate_client_password()
S
72 1 5
process_event()
S
78 1 3
get_payment()
S
78 1 3
get_subscription_id_for_payment()
S
78 1 3
disconnect()
S
71 1 6
cancel_subscription()
S
78 1 3
handle_disconnect()
S
74 1 5
reset_square_api_integration()
S
67 1 8
pull_response_body()
S
72 1 5
register_settings_scripts()
S
67 1 7
get_url_to_connect_server()
S
81 1 3
get_uuid()
S
76 1 4
create_subscription()
S
78 1 3
refund_payment()
S
78 1 3
get_latest_error_from_square_api()
S
80 1 3
get_client_side_token_option_name()
S
78 1 3
get_standard_authenticated_body()
S
66 1 8
get_url_for_square_settings()
S
78 1 3
redirect_oauth()
S
73 1 5
get_server_side_token_option_name()
S
78 1 3
get_square_connect_option_name()
S
78 1 3
get_merchant_currency_option_name()
S
78 1 3
get_location_id_option_name()
S
78 1 3
get_merchant_id_option_name()
S
78 1 3
user_landed_on_the_oauth_return_url()
S
79 1 3