WC_Cash_App_Pay_Gateway D

Total Complexity 154
Dependencies 8
Dependents 1
Total lines 1,525
Lines of code 876
Logical lines of code 447
Comment lines 622
Methods 25
Properties 0

Methods 25

Method Rating Maintainability Complexity Lines of code
process_payment()
C
28
22 127
wc_cash_app_locations_api()
C
33 23 99
process_refund()
C
31 21 109
__construct()
B
29
10 154
wc_cash_app_pay_square_customer()
A
39 8 74
wc_cash_app_pay_payment_scripts()
A
44 7 45
wc_cash_app_pay_square_get_payment()
S
50 6 29
wc_cash_app_pay_get_refund_order()
S
50 6 27
wc_cash_app_pay_thankyou_page()
S
55 6 18
wc_cash_app_pay_email_instructions()
S
59 6 12
payment_fields()
S
46 4 40
wc_cash_app_pay_get_refund_error()
S
54 4 22
wc_cash_app_pay_add_refund_note()
S
55 4 19
validate_fields()
S
61 4 11
wccp_log()
S
65 4 8
wc_cash_app_pay_processed()
S
67 4 8
unsetEmptyKeysRecursive()
S
64 4 10
wc_cash_app_pay_square_url()
S
67 2 8
wc_cash_app_pay_mark_order_as_refunded()
S
64 2 9
wc_cash_app_pay_square_connect_url()
S
67 2 8
wc_cash_app_payment_api()
S
61 1 13
wc_cash_app_refund_api()
S
62 1 12
wc_cash_app_pay_square_connect_redirect()
S
80 1 3
wc_cash_app_set_money()
S
67 1 8
webhook()
S
83 1 3