Give_Subscription D

Total Complexity 128
Dependencies 7
Dependents 3
Total lines 1,224
Lines of code 516
Logical lines of code 286
Comment lines 424
Methods 45
Properties 18

Methods 45

Method Rating Maintainability Complexity Lines of code
create()
A
45 9 42
setup_subscription()
A
50 9 29
mayBeSanitizeWebhookResponseDonationAmount()
A
53 8 21
renew()
S
49 7 28
add_payment()
S
41 5 55
get_renewal_date()
S
57 7 15
get_lifetime_value()
S
55 5 20
add_note()
S
54 4 20
cancel()
S
55 4 20
update()
S
58 4 14
to_array()
S
62 4 11
payment_exists()
S
55 3 22
is_active()
S
67 4 7
get_transaction_id()
S
65 4 9
get_notes()
S
64 4 8
get_last_payment()
S
60 3 13
failing()
S
62 3 12
expire()
S
62 3 12
__construct()
S
63 3 11
complete()
S
63 3 11
get_child_payments()
S
59 2 15
get_initial_payment()
S
61 2 12
get_subscription_progress()
S
68 2 7
can_update_status()
S
78 2 3
__get()
S
67 2 7
is_complete()
S
68 2 7
is_expired()
S
68 2 7
get_raw_notes()
S
75 1 4
delete()
S
70 1 6
get_notes_count()
S
72 1 5
get_original_payment_id()
S
82 1 3
is_parent_payment()
S
80 1 3
get_subscription_end_time()
S
71 1 5
get_status()
S
82 1 3
can_cancel()
S
79 1 3
get_expiration_time()
S
79 1 3
get_expiration()
S
82 1 3
get_total_payments()
S
79 1 3
get_edit_subscription_url()
S
68 1 7
get_update_url()
S
68 1 7
can_update_subscription()
S
79 1 3
can_update()
S
79 1 3
set_transaction_id()
S
69 1 7
can_sync()
S
79 1 3
get_cancel_url()
S
67 1 7