Svea_Checkout_For_Woocommerce\WC_Gateway_Svea_Checkout D

Total Complexity 176
Dependencies 13
Dependents 7
Total lines 1,667
Lines of code 916
Logical lines of code 491
Comment lines 451
Methods 40
Properties 23

Methods 40

Method Rating Maintainability Complexity Lines of code
process_refund()
C
28
25 132
get_merchant_settings()
B
36 18 87
get_country_settings()
A
40 14 62
process_payment()
A
40 11 56
validate_merchant_credentials()
A
42 11 54
prevent_duplicate_order()
A
41 11 54
product_part_payment_widget()
A
43 10 48
cancel_order()
A
48 8 33
deliver_order()
S
47 6 36
__construct()
S
39 3 66
svea_co_display_extra_admin_order_meta()
S
52 5 29
append_cart_item_key_to_order_row_shipping()
S
57 5 16
is_available()
S
62 4 11
svea_co_display_extra_order_meta()
S
56 3 22
get_part_payment_plans()
S
53 3 21
add_hooks()
S
53 3 20
generate_nshift_shipping_options_html()
S
54 2 27
refund_order()
S
66 3 8
log()
S
67 3 8
get_svea_part_pay_logo_by_country()
S
60 2 14
is_valid_vat_percentage()
S
59 2 13
get_checkout_fields_mapping()
S
54 1 21
product_part_payment_widget_shortcode()
S
68 2 8
append_cart_item_key_to_order_row()
S
70 2 6
get_payment_method_name()
S
68 2 7
clear_merchant_validation_cache()
S
69 2 6
get_instance()
S
71 2 6
should_hide_anonymous()
S
78 1 3
get_customer_types()
S
82 1 3
admin_options()
S
78 1 4
get_base_countries_as_options()
S
80 1 3
get_base_countries()
S
66 1 8
should_hide_not_you()
S
78 1 3
should_hide_change_address()
S
78 1 3
is_preset_zip_code_read_only()
S
78 1 3
is_preset_phone_read_only()
S
78 1 3
is_preset_email_read_only()
S
78 1 3
is_company_default()
S
78 1 3
is_nshift_enabled()
S
80 1 3
init_form_fields()
S
80 1 3