WC_Stripe_Payment S

Total Complexity 42
Dependencies 6
Dependents 1
Total lines 344
Lines of code 148
Logical lines of code 65
Comment lines 150
Methods 23
Properties 2

Methods 23

Method Rating Maintainability Complexity Lines of code
add_order_metadata()
S
50 7 26
process_refund()
S
51 5 26
payment_complete()
S
53 5 22
process_zero_total_order()
S
59 3 14
add_order_shipping_address()
S
57 2 17
get_name_from_order()
S
68 2 7
add_order_amount()
S
77 2 3
add_payment_failed_note()
S
71 1 5
add_order_currency()
S
79 1 3
add_order_description()
S
77 1 3
add_general_order_args()
S
67 1 8
order_error()
S
76 1 4
__construct()
S
77 1 4
get_gateway()
S
82 1 3
can_void_order()
S
100 1 0
process_pre_order_payment()
S
100 1 0
scheduled_subscription_payment()
S
100 1 0
add_order_payment_method()
S
100 1 0
get_payment_method_from_charge()
S
100 1 0
void_charge()
S
100 1 0
capture_charge()
S
100 1 0
process_payment()
S
100 1 0
set_payment_method()
S
81 1 3