WC_Gateway_Braintree D

Total Complexity 148
Dependencies 11
Dependents 0
Total lines 1,586
Lines of code 767
Logical lines of code 317
Comment lines 473
Methods 51
Properties 13

Methods 51

Method Rating Maintainability Complexity Lines of code
get_order()
A
45 15 37
get_order_meta()
A
51 11 24
admin_options()
A
39 2 129
get_connect_url()
A
46 8 38
generate_braintree_auth_html()
S
41 3 81
is_name_dynamic_descriptor_valid()
S
54 7 21
filter_admin_options()
S
51 6 25
is_phone_dynamic_descriptor_valid()
S
59 5 15
is_configured()
S
64 6 9
generate_merchant_account_ids_html()
S
50 4 30
get_method_form_fields()
S
39 1 75
add_transaction_data()
S
62 5 12
add_shared_settings_form_fields()
S
52 4 25
get_customer_id()
S
56 4 17
get_merchant_id()
S
65 5 9
get_transaction_url()
S
60 4 13
is_payment_form_page()
S
77 4 3
generate_merchant_account_id_html()
S
51 2 27
get_api()
S
52 2 26
get_environment()
S
67 3 8
get_public_key()
S
70 3 6
get_merchant_account_id()
S
68 3 7
enqueue_admin_scripts()
S
64 3 9
get_private_key()
S
70 3 6
ajax_get_client_token()
S
61 2 12
get_guest_customer_id()
S
71 2 6
enqueue_gateway_assets()
S
67 2 7
validate_payment_nonce()
S
67 2 7
can_connect()
S
78 2 3
is_connected_manually()
S
78 2 3
get_order_for_refund()
S
68 2 7
is_test_environment()
S
71 2 6
get_phone_dynamic_descriptor()
S
82 1 3
get_url_dynamic_descriptor()
S
82 1 3
get_name_dynamic_descriptor()
S
82 1 3
get_admin_params()
S
82 1 3
get_braintree_environments()
S
77 1 3
get_transaction_type()
S
80 1 3
build_payment_tokens_handler()
S
80 1 3
get_auth_merchant_id()
S
79 1 3
get_auth_environment()
S
79 1 3
get_auth_access_token()
S
82 1 3
load_settings()
S
72 1 5
supports_credit_card_charge_virtual()
S
80 1 3
is_paypal_gateway()
S
80 1 3
get_disconnect_url()
S
74 1 4
is_connected()
S
76 1 4
init_payment_form_handler()
S
75 1 4
get_capture_handler()
S
75 1 4
tokenize_with_sale()
S
82 1 3
__construct()
S
74 1 4