WC_Payments_Invoice_Service A

Total Complexity 54
Dependencies 17
Dependents 4
Total lines 488
Lines of code 225
Logical lines of code 115
Comment lines 194
Methods 20
Properties 3

Methods 20

Method Rating Maintainability Complexity Lines of code
maybe_record_invoice_payment()
A
48 11 30
get_repair_data_for_wcpay_items()
A
45 7 40
get_repair_data_for_wcpay_discounts()
S
57 6 17
update_transaction_details()
S
56 4 18
validate_invoice()
S
58 4 16
get_order_id_by_invoice_id()
S
51 2 28
__construct()
S
61 3 12
record_subscription_payment_context()
S
67 3 8
get_and_attach_intent_info_to_order()
S
61 2 12
update_charge_details()
S
64 2 11
mark_pending_invoice_paid_for_subscription()
S
80 1 3
mark_pending_invoice_for_subscription()
S
80 1 3
set_order_invoice_id()
S
76 1 4
get_pending_invoice_id()
S
79 1 3
get_subscription_invoice_id()
S
79 1 3
get_recurring_items()
S
80 1 3
get_wcpay_item_id()
S
80 1 3
set_pending_invoice_id()
S
76 1 4
get_order_invoice_id()
S
79 1 3
set_subscription_invoice_id()
S
76 1 4