WC_iZettle_Integration_Purchase_Handler D

Total Complexity 297
Dependencies 10
Dependents 0
Total lines 1,641
Lines of code 1,139
Logical lines of code 772
Comment lines 28
Methods 37
Properties 2

Methods 37

Method Rating Maintainability Complexity Lines of code
process_purchase_wc_order()
D
5
89 413
process_purchase_wc_stockchange()
D
31 34 98
schedule_sync_izettle_purchases()
B
39 18 68
sync_iz_purchases_action()
A
44 11 43
process_purchase_wc_refund()
A
42 10 45
process_purchase_fortnox()
A
46 10 36
woosb_get_bundled()
A
46 9 34
set_order_status()
A
48 7 32
process_comment()
S
51 7 27
__construct()
S
47 6 32
process_incoming_purchase()
S
56 7 17
process_purchase_wc_order_update()
S
57 7 15
get_comment_name()
S
59 7 13
get_comment_order_id()
S
57 6 17
payment_complete_reduce_order_stock()
S
58 6 16
change_stock_level_fortnox()
S
54 5 19
complete_order()
S
48 4 31
get_comment_customer_id()
S
59 5 15
get_commment_email()
S
61 5 13
get_comment_phone()
S
61 5 13
is_free_amount_with_comment()
S
56 4 18
get_product_item_discount()
S
62 4 11
set_order_customer_data()
S
52 3 23
force_send_new_order_email_to_admin()
S
57 3 15
filter_new_order_email()
S
67 4 7
modify_order_number()
S
64 3 11
adjust_line_item_product_stock()
S
68 3 7
add_purchase_to_queue()
S
65 3 8
calc_tax_ex_tax()
S
67 2 7
type_text()
S
80 2 3
get_product_order_id()
S
64 2 9
calc_tax_inc_tax()
S
77 1 3
process_purchase_wc_stockchange_reverse()
S
80 1 3
get_tax_amount()
S
74 1 4
remove_processed()
S
69 1 6
document_changes()
S
73 1 4
sync_iz_purchases_filter()
S
80 1 3