Charitable_Gateway_Square D

Total Complexity 332
Dependencies 13
Dependents 6
Total lines 2,862
Lines of code 1,470
Logical lines of code 695
Comment lines 904
Methods 78
Properties 11

Methods 78

Method Rating Maintainability Complexity Lines of code
process_donation()
D
22
40 190
get_payment_args_subscription()
C
37 28 61
check_token_status()
B
38 17 67
save_settings()
A
45 13 43
enqueue_square_scripts()
A
40 10 62
process_api_errors()
A
48 10 32
refund_donation_from_dashboard()
A
43 8 53
square_renew_token()
A
49 8 29
cancel_subscription()
A
49 7 31
check_locations()
S
61 9 10
is_donation_refundable()
S
54 7 21
get_location_options_html()
S
45 5 50
maybe_active_public_gateway()
S
56 7 18
get_connected_status_content()
S
50 6 30
get_square_connect_url()
S
51 6 26
get_square_access_token()
S
49 5 38
get_enabled_status_content()
S
54 6 21
get_webhooks_content()
S
43 3 63
get_square_disconnect_button()
S
47 5 33
register_gateway()
S
59 6 15
maybe_clear_mode_connection_warning()
S
60 6 13
gateway_settings()
S
48 4 34
handle_redirect()
S
56 5 18
validate_donation()
S
55 5 18
log_errors()
S
63 5 11
check_keys_exist()
S
60 4 14
process_api_errors_codes()
S
60 4 14
get_square_renew_token_url()
S
52 3 24
__construct()
S
55 3 19
get_account_id()
S
64 4 9
get_square_location_id()
S
63 4 10
get_webhooks_connect_button()
S
51 2 29
get_credit_card_fields()
S
53 2 27
is_square_connected()
S
67 3 9
get_connection_status_content()
S
64 3 10
get_disabled_status_content()
S
66 3 9
get_square_connect_button_html()
S
63 3 9
get_business_locations_content()
S
66 3 8
get_square_connect_button_x()
S
62 3 10
get_keys()
S
63 3 10
is_square_settings_page()
S
77 3 3
is_square_core_active()
S
65 3 8
is_square_legacy_active()
S
66 3 8
get_fees_content()
S
60 2 14
get_webhooks_id_desc()
S
56 1 20
get_webhooks_secret_desc()
S
56 1 20
get_disconnected_status_content()
S
56 1 20
get_webhooks_endpoint_content()
S
55 1 20
api()
S
70 2 6
maybe_square_connected()
S
79 2 3
get_connect_button()
S
64 2 9
get_location_options()
S
73 2 4
get_square_merchant_id()
S
68 2 7
get_square_disconnect_url()
S
60 1 15
get_gateway_value()
S
70 2 6
get_square_application_id()
S
68 2 7
get_disconnect_button()
S
64 2 9
get_instance()
S
71 2 6
get_missing_status_content()
S
76 1 3
get_invalid_status_content()
S
70 1 5
get_expired_status_content()
S
70 1 5
get_currency_mismatch_status_content()
S
71 1 5
get_currency_missing_location_currency_content()
S
71 1 5
get_connected_account()
S
75 1 4
get_logo()
S
82 1 3
get_square_refresh_token()
S
80 1 3
get_gateway_id()
S
80 1 3
get_personal_access_token()
S
82 1 3
get_personal_access_refresh_token()
S
82 1 3
get_personal_access_token_refresh_date()
S
82 1 3
get_personal_access_token_should_refresh()
S
82 1 3
get_gateway_value_from_processor()
S
79 1 3
get_oauth_error_codes()
S
79 1 3
setup_api()
S
82 1 3
get_refresh_button()
S
66 1 9
get_error_icon()
S
82 1 3
get_settings_page_url()
S
65 1 10
generate_admin_notice_for_square_connection_error()
S
67 1 8