WC_Gateway_Braintree_PayPal A

Total Complexity 62
Dependencies 9
Dependents 0
Total lines 821
Lines of code 363
Logical lines of code 102
Comment lines 291
Methods 32
Properties 7

Methods 32

Method Rating Maintainability Complexity Lines of code
add_payment_gateway_transaction_data()
A
54 8 22
do_paypal_transaction()
S
54 6 20
init_paypal_buttons()
S
59 6 14
add_authorization_charge_form_fields()
S
41 2 61
generate_button_preview_html()
S
45 1 69
get_safe_locale()
S
50 2 32
is_payment_form_page()
S
71 4 5
tweak_payment_methods_text()
S
64 4 10
__construct()
S
48 1 36
enqueue_gateway_assets()
S
67 3 7
tweak_my_payment_methods_delete_text()
S
70 2 6
add_payment_gateway_refund_data()
S
73 2 5
is_paypal_credit_enabled()
S
79 2 3
adjust_token_editor_fields()
S
61 1 14
cart_checkout_enabled()
S
78 1 3
product_page_buy_now_enabled()
S
78 1 3
get_button_color()
S
80 1 3
is_paypal_credit_supported()
S
80 1 3
supports_credit_card_authorization()
S
80 1 3
get_button_size()
S
80 1 3
supports_credit_card_charge()
S
80 1 3
build_pre_orders_integration()
S
74 1 4
get_payment_method_image_url()
S
80 1 3
get_icon()
S
75 1 4
get_default_description()
S
79 1 3
get_default_title()
S
79 1 3
get_button_handlers()
S
82 1 3
get_saved_payment_token_order_note()
S
78 1 3
validate_paypal_fields()
S
80 1 3
get_method_form_fields()
S
71 1 6
init_payment_form_instance()
S
80 1 3
get_button_shape()
S
80 1 3