Storeengine\Payment\Gateways\PaymentGateway B

Total Complexity 99
Dependencies 4
Dependents 4
Total lines 860
Lines of code 325
Logical lines of code 148
Comment lines 407
Methods 52
Properties 19

Methods 52

Method Rating Maintainability Complexity Lines of code
init_settings()
A
51 8 23
get_option()
S
60 6 13
handle_save_request()
S
56 5 16
email_instructions()
S
63 5 9
get_order_total()
S
62 4 11
is_available()
S
68 4 7
get_tokens()
S
66 4 9
lock_order_refund()
S
59 3 14
get_transaction_url()
S
66 3 8
get_new_payment_method_option_html()
S
62 2 12
get_title()
S
56 1 20
payment_fields()
S
68 2 8
process_refund()
S
70 2 6
can_refund_order()
S
79 2 3
saved_payment_methods()
S
64 2 9
thankyou_page()
S
71 2 6
get_instructions()
S
69 2 6
get_icon()
S
72 2 4
get_return_url()
S
66 2 8
set_option()
S
71 2 6
get_settings()
S
72 2 6
update_option()
S
69 2 7
set_defaults()
S
71 2 6
get_field_default()
S
78 2 3
get_saved_payment_method_option_html()
S
61 1 13
save_payment_method_checkbox()
S
64 1 11
has_fields()
S
82 1 3
get_method_description()
S
79 1 3
get_admin_fields_sorted()
S
71 1 5
get_admin_fields()
S
77 1 3
init_admin_fields()
S
91 1 2
add_payment_method()
S
71 1 6
need_config_verification()
S
82 1 3
set_index()
S
80 1 3
tokenization_script()
S
91 1 2
get_method_title()
S
79 1 3
supports()
S
77 1 3
unlock_order_refund()
S
77 1 4
validate_fields()
S
82 1 3
set_settings()
S
81 1 3
admin_options()
S
91 1 2
needs_setup()
S
82 1 3
get_option_key()
S
80 1 3
process_payment()
S
82 1 3
save_settings()
S
77 1 3
is_enabled()
S
82 1 3
is_current()
S
82 1 3
set_current()
S
81 1 3
get_pay_button_id()
S
80 1 3
get_index()
S
82 1 3
get_description()
S
78 1 3
get_refund_log_meta_key()
S
80 1 3