WC_Cash_App_Pay_Gateway D

Total Complexity 140
Dependencies 8
Dependents 1
Total lines 1,457
Lines of code 806
Logical lines of code 410
Comment lines 518
Methods 24
Properties 0

Methods 24

Method Rating Maintainability Complexity Lines of code
process_payment()
C
28
22 127
process_refund()
B
34 18 85
__construct()
B
28
12 158
wc_cash_app_locations_api()
B
37 15 75
wc_cash_app_pay_square_customer()
A
39 8 74
wc_cash_app_pay_payment_scripts()
A
44 7 45
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
unsetEmptyKeysRecursive()
S
64 4 10
wc_cash_app_pay_processed()
S
67 4 8
wc_cash_app_pay_square_url()
S
64 3 11
wc_cash_app_pay_square_connect_url()
S
67 2 8
wc_cash_app_pay_mark_order_as_refunded()
S
64 2 9
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