WC_Gateway_Braintree_PayPal B

Total Complexity 94
Dependencies 11
Dependents 1
Total lines 1,146
Lines of code 477
Logical lines of code 153
Comment lines 433
Methods 47
Properties 7

Methods 47

Method Rating Maintainability Complexity Lines of code
add_payment_gateway_transaction_data()
A
54 8 22
add_authorization_charge_form_fields()
S
36 2 98
do_paypal_transaction()
S
54 6 20
init_paypal_buttons()
S
59 6 14
get_settings_description_text()
S
58 4 15
get_safe_locale()
S
50 2 32
is_payment_form_page()
S
71 4 5
tweak_payment_methods_text()
S
64 4 10
get_paypal_sdk_url()
S
60 3 13
is_paypal_pay_later_supported()
S
60 3 12
generate_button_preview_html()
S
57 2 21
__construct()
S
48 1 36
enqueue_gateway_assets()
S
65 3 8
tweak_my_payment_methods_delete_text()
S
68 3 6
should_force_buyer_country_on_loading_sdk()
S
68 3 7
get_button_sizes()
S
60 1 16
is_paypal_card_enabled()
S
71 2 6
get_button_width()
S
74 2 4
get_order()
S
66 2 8
get_button_height()
S
74 2 4
get_button_container_style()
S
67 2 8
is_paypal_pay_later_enabled()
S
79 2 3
get_sandbox_sdk_client_id()
S
63 2 10
add_payment_gateway_refund_data()
S
73 2 5
adjust_token_editor_fields()
S
61 1 14
get_icon()
S
75 1 4
get_button_size()
S
80 1 3
get_admin_params()
S
74 1 5
get_pay_later_messaging_style_attributes()
S
63 1 10
init_payment_form_instance()
S
80 1 3
get_method_form_fields()
S
71 1 6
validate_paypal_fields()
S
80 1 3
get_saved_payment_token_order_note()
S
78 1 3
build_pre_orders_integration()
S
74 1 4
get_button_shape()
S
80 1 3
get_button_color()
S
80 1 3
supports_credit_card_authorization()
S
80 1 3
get_button_handlers()
S
82 1 3
get_pay_later_messaging_text_color()
S
80 1 3
get_pay_later_messaging_logo_postion()
S
80 1 3
get_pay_later_messaging_logo_type()
S
80 1 3
get_default_title()
S
79 1 3
get_default_description()
S
79 1 3
product_page_buy_now_enabled()
S
78 1 3
cart_checkout_enabled()
S
78 1 3
supports_credit_card_charge()
S
80 1 3
get_payment_method_image_url()
S
80 1 3