Woo_Paypal_Gateway_Public D

Total Complexity 189
Dependencies 4
Dependents 2
Total lines 716
Lines of code 634
Logical lines of code 415
Comment lines 31
Methods 24
Properties 16

Methods 24

Method Rating Maintainability Complexity Lines of code
enqueue_scripts()
C
31 21 106
wpg_checkout_fields()
B
43 21 43
wpg_maybe_disable_other_gateways()
A
54 14 20
wpg_ajax_generate_cart_for_paypal_checkout()
A
42 12 47
wpg_display_paypal_button_on_product_page()
A
48 12 35
wpg_get_mapped_billing_address()
A
44 11 43
wpg_checkout_details_to_post()
A
45 10 40
wpg_get_mapped_shipping_address()
A
46 9 39
wpg_is_product_already_in_cart()
A
50 9 26
wpg_get_state_code()
A
53 9 23
wpg_formatted_billing_address()
A
48 8 32
wpg_enable_paypal_checkout()
A
55 8 21
wpg_woocommerce_checkout_get_value()
S
55 6 19
wpg_endpoint_page_titles()
S
66 7 7
wpg_display_paypal_button_on_cart_page()
S
54 5 25
wpg_add_body_classes()
S
60 5 15
wpg_formatted_shipping_address()
S
55 4 21
enqueue_styles()
S
61 4 11
wpg_maybe_add_shipping_information()
S
56 3 19
wpg_init_sdk()
S
64 3 10
__construct()
S
69 3 6
update_customer_addresses_from_paypal()
S
58 1 15
wpg_add_header_meta()
S
70 2 7
wpg_is_credit_supported()
S
74 2 4