Charitable_Donation_Form D

Total Complexity 179
Dependencies 7
Dependents 2
Total lines 1,507
Lines of code 683
Logical lines of code 314
Comment lines 617
Methods 49
Properties 9

Methods 49

Method Rating Maintainability Complexity Lines of code
get_donation_values()
A
44 15 43
set_field_value()
A
50 11 26
stripe_key_check()
A
53 10 21
maybe_add_minimum_donation_amount()
A
51 9 24
validate_amount()
A
49 8 33
maybe_add_terms_conditions_fields()
A
44 6 49
get_fields_from_section()
S
56 6 19
get_user_value()
S
57 6 17
user_has_required_fields()
S
59 6 15
minimum_donation_amount_notice()
S
57 6 15
get_donation_amount()
S
62 7 10
maybe_show_current_donation_amount()
S
52 5 28
validate_submission()
S
60 6 13
add_payment_fields()
S
51 5 26
__construct()
S
59 4 13
get_validated_donation_id()
S
61 4 13
get_donor_value_fields()
S
62 4 13
has_profile_fields()
S
66 4 8
is_missing_required_fields()
S
60 3 15
validate_email()
S
59 3 14
setup_payment_fields()
S
61 3 12
get_user_account_fields()
S
54 2 23
get_fields()
S
49 1 34
get_user()
S
68 3 7
add_password_field()
S
66 3 9
validate_security_check()
S
63 3 10
get_merged_fields()
S
65 3 9
should_hide_user_fields()
S
73 3 4
check_test_mode()
S
70 3 6
get_sanitized_donation_fields()
S
63 2 11
hide_non_required_user_fields()
S
70 2 6
add_credit_card_fields()
S
71 2 6
get_hidden_fields()
S
64 2 9
add_hidden_gateway_field()
S
65 2 9
validate_gateway()
S
66 2 8
get_credentialed_notice()
S
71 2 6
get_donation_fields()
S
62 1 12
get_test_mode_active_notice()
S
63 1 11
get_stripe_key_check_notice()
S
63 1 11
get_campaign()
S
82 1 3
get_form_template()
S
79 1 3
get_user_fields()
S
70 1 6
get_meta_fields()
S
72 1 5
render()
S
65 1 10
get_terms()
S
69 1 8
get_parsed_terms_text()
S
69 1 8
get_parsed_privacy_text()
S
69 1 8
get_no_active_gateways_notice()
S
67 1 7
use_custom_templates()
S
71 1 7