PMProGateway_braintree D

Total Complexity 166
Dependencies 13
Dependents 1
Total lines 1,204
Lines of code 798
Logical lines of code 438
Comment lines 253
Methods 30
Properties 1

Methods 30

Method Rating Maintainability Complexity Lines of code
getCustomer()
D
29
29 133
pmpro_include_payment_information_fields()
B
33 21 96
subscribe()
A
38 13 66
charge()
A
41 9 63
cancel()
A
45 10 47
pmpro_payment_option_fields()
A
45 7 53
process()
A
48 7 39
getPlans()
S
50 6 28
dependencies()
S
51 6 25
pmpro_next_payment()
S
60 6 13
update_subscription_info()
S
51 5 26
__construct()
S
50 4 30
init()
S
55 4 19
pmpro_checkout_order()
S
56 4 19
update()
S
59 4 15
get_subscription()
S
60 4 13
getPlanByID()
S
64 4 10
pmpro_checkout_preheader()
S
58 3 15
cancel_subscription()
S
63 3 11
user_register()
S
69 2 7
supports()
S
64 2 10
pmpro_gateways()
S
72 2 5
checkLevelForPlan()
S
67 2 8
pmpro_save_level_action()
S
67 2 7
loadBraintreeLibrary()
S
66 2 8
getGatewayOptions()
S
62 1 13
pmpro_required_billing_fields()
S
73 1 5
pmpro_payment_options()
S
73 1 5
get_plan_id()
S
78 1 3
pmpro_checkout_before_submit_button()
S
81 1 6