WC_Payments_Subscriptions_Migrator B

Total Complexity 89
Dependencies 13
Dependents 1
Total lines 768
Lines of code 352
Logical lines of code 184
Comment lines 290
Methods 24
Properties 8

Methods 24

Method Rating Maintainability Complexity Lines of code
update_next_payment_date()
A
48 8 33
verify_subscription_payment_token()
A
53 8 21
migrate_wcpay_subscription()
S
50 6 26
maybe_reschedule_migration()
S
52 6 23
maybe_create_and_update_payment_token()
S
49 5 30
add_manual_migration_tool()
S
52 5 23
update_wcpay_subscription_meta()
S
56 5 18
validate_subscription_to_migrate()
S
57 5 17
get_migration_action_args()
S
57 5 17
fetch_wcpay_subscription()
S
57 5 15
get_wcpay_subscription_status()
S
64 5 9
handle_unexpected_shutdown()
S
61 4 10
get_items_to_repair()
S
51 2 29
maybe_cancel_wcpay_subscription()
S
59 3 13
get_stripe_billing_subscription_count()
S
57 2 17
is_migrating()
S
77 3 3
update_item()
S
69 2 6
handle_unexpected_action_failure()
S
66 2 8
schedule_migrate_wcpay_subscriptions_action()
S
67 2 8
exclude_migrated_meta()
S
70 2 6
__construct()
S
64 1 9
repair_item()
S
81 1 3
init()
S
77 1 4
unschedule_background_updates()
S
77 1 4