WC_Gateway_PPEC_Cart_Handler D

Total Complexity 167
Dependencies 5
Dependents 1
Total lines 748
Lines of code 500
Logical lines of code 284
Comment lines 152
Methods 22
Properties 0

Methods 22

Method Rating Maintainability Complexity Lines of code
enqueue_scripts()
C
31 30 88
set_customer_data()
B
37 21 65
inject_credit_messaging_configuration()
A
43 14 45
wc_ajax_generate_cart()
A
43 13 46
hide_card_payment_buttons_for_subscriptions()
A
53 14 21
get_button_settings()
A
49 12 29
display_paypal_button_product()
A
46 8 36
maybe_ensure_session()
A
61 10 10
display_paypal_button()
S
48 6 34
display_mini_paypal_button()
S
54 6 20
__construct()
S
50 5 26
wc_ajax_start_checkout()
S
61 5 11
maybe_enqueue_checkout_js()
S
63 5 10
wc_ajax_update_shipping_costs()
S
62 4 11
maybe_start_checkout()
S
59 3 15
before_cart_totals()
S
70 3 6
start_checkout()
S
67 2 8
add_paypal_sdk_namespace_attribute()
S
70 2 6
loadCartDetails()
S
79 1 3
loadOrderDetails()
S
79 1 3
setECParams()
S
79 1 3
ensure_session()
S
76 1 4