Total Complexity | 24 |
Dependencies | 6 |
Dependents | 4 |
Total lines | 239 |
Lines of code | 115 |
Logical lines of code | 54 |
Comment lines | 101 |
Methods | 11 |
Properties | 0 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
create_new_subscription() | 49 | 5 | 28 | |
prepare_payment_limit() | 56 | 4 | 19 | |
prepare_plan_options() | 57 | 3 | 16 | |
maybe_create_missing_plan_and_create_subscription() | 63 | 3 | 9 | |
get_plan_for_action() | 63 | 2 | 10 | |
get_trial_with_default() | 71 | 2 | 6 | |
prepare_charge_object_for_subscription() | 65 | 1 | 9 | |
get_plan_from_atts() | 72 | 1 | 5 | |
maybe_create_plan() | 75 | 1 | 4 | |
should_cancel_at_period_end() | 78 | 1 | 3 | |
get_invalid_payment_limit_error() | 71 | 1 | 6 |