NewsletterSubscription D

Total Complexity 340
Dependencies 9
Dependents 7
Total lines 1,777
Lines of code 1,169
Logical lines of code 830
Comment lines 268
Methods 41
Properties 2

Methods 41

Method Rating Maintainability Complexity Lines of code
shortcode_newsletter_field()
D
20
54 200
hook_newsletter_action()
D
30 33 108
update_user_from_request()
C
35 27 74
build_subscription()
B
37 22 66
subscribe()
B
36 19 74
subscribe2()
B
38 18 64
get_subscription_form()
B
39 17 63
shortcode_newsletter()
A
44 12 43
get_form_hidden_fields()
A
48 12 32
send_message()
A
47 10 36
get_default_subscription()
A
51 10 25
sanitize()
A
49 9 30
confirm()
A
45 8 40
get_message_key_from_request()
A
57 8 16
get_form_implicit_lists()
S
50 7 29
shortcode_newsletter_form()
S
58 6 15
get_subscription_form_minimal()
S
49 5 29
get_subscription_form_custom()
S
50 5 28
set_updated()
S
57 5 17
_shortcode_label()
S
58 5 15
send_activation_email()
S
61 5 13
mail()
S
55 4 19
get_privacy_field()
S
55 4 19
hook_init()
S
65 4 8
get_privacy_url()
S
63 4 10
show_message()
S
59 3 14
get_text_message()
S
65 3 9
get_form()
S
60 2 12
get_language_from_request()
S
77 2 3
build_field_admin_notice()
S
71 2 6
replace_lists()
S
63 2 10
notify_admin_on_subscription()
S
64 2 9
get_options()
S
71 2 6
instance()
S
71 2 6
get_form_javascript()
S
100 1 2
is_double_optin()
S
80 1 3
__construct()
S
75 1 4
add_microdata()
S
81 1 3
get_form_text()
S
80 1 3
get_form_option()
S
80 1 3
get_form_options()
S
81 1 3