SPC_Payment_Method_Square C

Total Complexity 125
Dependencies 7
Dependents 0
Total lines 851
Lines of code 651
Logical lines of code 347
Comment lines 26
Methods 36
Properties 3

Methods 36

Method Rating Maintainability Complexity Lines of code
options()
A
33 10 121
square_connect_return()
A
47 8 35
process_refund()
A
43 7 47
init_order()
S
44 6 45
square_disconnect()
S
47 6 35
create_order()
S
56 6 17
refresh_token()
S
49 5 29
setup()
S
55 5 20
get_location_id()
S
61 5 13
get_locations()
S
52 4 23
checkout_validation()
S
66 5 7
init()
S
49 3 28
get_transaction_url()
S
61 4 12
enqueue_scripts()
S
54 3 21
square_connect_display()
S
56 3 18
get_application_fee_amount()
S
59 3 15
secure_token()
S
59 3 13
get_fields()
S
59 2 16
is_allowed()
S
70 3 6
mode()
S
70 3 6
square_refresh_locations()
S
65 3 9
get_idempotency_key()
S
68 3 6
square_refresh_token()
S
66 3 8
get_access_token()
S
64 3 10
admin_order_tab_content_square()
S
59 2 13
order_actions_options()
S
57 1 26
get_merchant_id()
S
69 2 7
get_application_id()
S
71 2 6
init_setup()
S
72 2 6
admin_order_tab()
S
70 2 6
order_actions()
S
68 2 7
get_refresh_token()
S
67 2 8
get_application_fee_percent()
S
79 1 3
get_transaction_id()
S
80 1 3
get_app_fee()
S
80 1 3
get_mode()
S
80 1 3