SWPM_Utils_Subscriptions C

Total Complexity 107
Dependencies 10
Dependents 8
Total lines 919
Lines of code 541
Logical lines of code 279
Comment lines 211
Methods 26
Properties 12

Methods 26

Method Rating Maintainability Complexity Lines of code
create_subscription_data_array()
C
34 24 88
handle_cancel_sub()
A
49 12 27
get_last_active_sub_if_any()
A
42 8 57
load_subs_data()
A
44 7 50
load_stripe_subscriptions()
S
42 5 55
load_subs_data_by_sub_id()
S
46 4 46
recheck_status_if_needed()
S
54 5 20
get_subscription_agreement_cpt_id_by_subs_id()
S
51 4 28
get_stripe_subs_cancel_url()
S
54 4 20
dispatch_subscription_cancel_request()
S
58 4 17
get_cancel_subscription_output()
S
50 3 31
update_subscription_agreement_record_meta_by_sub_id()
S
60 4 12
cancel_subscription_stripe_sca()
S
55 3 19
cancel_subscription_paypal()
S
56 3 18
cancel_msg()
S
62 3 10
find_by_token()
S
67 3 8
get_subscription_data()
S
71 2 6
is_active_status()
S
78 1 3
get_all_subs_count()
S
80 1 3
get_active_subs_count()
S
80 1 3
get_any_stripe_sca_api_key_error()
S
82 1 3
get_any_paypal_ppcp_api_key_error()
S
82 1 3
get_all_subscriptions()
S
82 1 3
get_active_subscriptions()
S
82 1 3
update_subscription_agreement_record_status_to_cancelled()
S
78 1 3
__construct()
S
72 1 5