WC_Braintree_PayPal_Payment_Gateway B

Total Complexity 94
Dependencies 9
Dependents 0
Total lines 639
Lines of code 428
Logical lines of code 146
Comment lines 140
Methods 32
Properties 4

Methods 32

Method Rating Maintainability Complexity Lines of code
get_paypal_flow()
C
42 32 43
register_paypal_script()
A
51 9 24
update_shipping_response()
S
43 4 55
get_product_admin_options()
S
45 4 44
get_localized_standard_params()
S
45 3 45
can_show_bnpl_msg()
S
65 5 9
enqueue_product_scripts()
S
49 2 33
after_checkout_validation_notice()
S
61 3 13
add_order_line_items()
S
61 3 12
init_product_gateway_settings()
S
69 2 7
add_partner_attribution_id()
S
69 2 6
get_mini_cart_dependencies()
S
67 2 8
has_enqueued_scripts()
S
71 2 6
payment_methods_list_item()
S
63 2 10
is_paypal_credit_active()
S
77 2 3
enqueue_checkout_scripts()
S
61 1 14
enqueue_cart_scripts()
S
61 1 14
get_formatted_shipping_method()
S
61 1 12
__construct()
S
62 1 11
enqueue_admin_scripts()
S
66 1 8
set_supports()
S
69 1 7
get_credit_sections()
S
80 1 3
get_pay_later_sections()
S
80 1 3
is_bnpl_active()
S
80 1 3
remove_session_checkout_vars()
S
79 1 3
get_button_options()
S
65 1 9
update_shipping_method_response()
S
74 1 4
get_user_locale()
S
81 1 3
get_supported_locales()
S
80 1 3
add_hooks()
S
67 1 7
get_payment_method_from_transaction()
S
82 1 3
localize_paypal_params()
S
81 1 3