WC_Gateway_Braintree_PayPal B

Total Complexity 95
Dependencies 10
Dependents 1
Total lines 1,182
Lines of code 509
Logical lines of code 155
Comment lines 438
Methods 48
Properties 7

Methods 48

Method Rating Maintainability Complexity Lines of code
add_authorization_charge_form_fields()
A
33 2 123
add_payment_gateway_transaction_data()
A
54 8 22
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
is_paypal_pay_later_supported()
S
59 3 14
get_paypal_sdk_url()
S
60 3 13
__construct()
S
48 1 36
generate_button_preview_html()
S
56 2 21
enqueue_gateway_assets()
S
65 3 8
should_force_buyer_country_on_loading_sdk()
S
68 3 7
tweak_my_payment_methods_delete_text()
S
68 3 6
get_sandbox_sdk_client_id()
S
61 2 12
get_button_sizes()
S
60 1 16
is_paypal_card_enabled()
S
71 2 6
get_button_width()
S
74 2 4
is_paypal_pay_later_enabled()
S
79 2 3
get_disabled_funding_sources()
S
70 2 7
get_button_height()
S
74 2 4
add_payment_gateway_refund_data()
S
73 2 5
get_button_container_style()
S
67 2 8
adjust_token_editor_fields()
S
61 1 14
get_pay_later_messaging_style_attributes()
S
63 1 10
get_admin_params()
S
74 1 5
get_order()
S
76 1 4
get_button_shape()
S
80 1 3
get_button_size()
S
80 1 3
get_button_color()
S
80 1 3
init_payment_form_instance()
S
80 1 3
get_saved_payment_token_order_note()
S
78 1 3
get_pay_later_messaging_text_color()
S
80 1 3
build_pre_orders_integration()
S
74 1 4
get_pay_later_messaging_logo_postion()
S
80 1 3
get_pay_later_messaging_logo_type()
S
80 1 3
get_method_form_fields()
S
71 1 6
product_page_buy_now_enabled()
S
78 1 3
cart_checkout_enabled()
S
78 1 3
supports_credit_card_charge()
S
80 1 3
validate_paypal_fields()
S
80 1 3
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
supports_credit_card_authorization()
S
80 1 3