WCML_Bookings D

Total Complexity 273
Dependencies 21
Dependents 0
Total lines 1,851
Lines of code 1,226
Logical lines of code 572
Comment lines 160
Methods 80
Properties 6

Methods 80

Method Rating Maintainability Complexity Lines of code
duplicate_booking_for_translations()
A
39 13 60
filter_bundled_product_in_cart_contents()
A
45 12 37
custom_box_html_data()
A
48 12 30
wcml_products_tab_sync_resources_and_persons()
A
39 9 73
custom_box_html()
A
43 10 47
sync_persons()
A
47 10 32
save_person_translation()
A
47 9 35
add_hooks()
A
34 4 105
save_resource_translation()
A
43 7 49
add_to_cart_sold_individually()
A
58 8 16
sync_resources()
S
48 6 36
sync_resource_costs()
S
54 7 20
booking_filters_query()
S
49 6 31
filter_my_account_bookings_tables_by_current_language()
S
56 6 18
maybe_sync_updated_booking_meta()
S
50 5 29
delete_bookings()
S
54 5 22
append_resources_to_translation_package()
S
57 5 16
get_translated_booking_persons_ids()
S
58 5 15
sync_bookings()
S
58 5 14
append_persons_to_translation_package()
S
53 4 22
translate_emails_text_strings()
S
54 4 21
get_order_language()
S
55 4 19
translate_email_strings()
S
57 4 16
trash_bookings()
S
59 4 15
booking_email_language()
S
64 5 9
filter_translatable_documents()
S
65 5 9
sync_booking_status()
S
62 4 11
sync_resource_costs_with_translations()
S
55 3 23
duplicate_person()
S
54 3 22
duplicate_resource()
S
54 3 21
extra_conditions_to_filter_bookings()
S
68 4 6
prevent_events_on_duplicates()
S
63 4 10
get_translated_booking_resource_id()
S
62 3 11
get_translated_booking_product_id()
S
62 3 11
wcml_js_lock_fields_ids()
S
51 1 33
update_status_for_translations()
S
57 2 17
is_booking()
S
69 3 6
sync_booking_data()
S
63 3 10
filter_is_translated_post_type()
S
67 3 7
bookings_in_date_range_query()
S
63 3 10
maybe_set_booking_language()
S
65 3 9
synchronize_bookings_on_translation_completed()
S
67 3 8
count_bookings_by_current_language()
S
60 2 12
translate_new_booking_email_texts()
S
73 2 4
save_booking_data_to_translation()
S
70 2 6
is_bookings_listing_page()
S
78 2 3
get_admin_user_email_language()
S
68 2 7
translate_booking_cancelled_admin_email_texts()
S
74 2 4
email_class_exists()
S
78 2 3
is_delete_all_action()
S
78 2 3
filter_get_booking_products_args()
S
71 2 6
show_custom_blocks_for_resources_and_persons()
S
70 2 6
filter_get_booking_resources_args()
S
68 2 7
product_content_resource_label()
S
71 2 6
get_booking_cost()
S
65 2 9
update_product_resource()
S
60 1 14
show_pointer_info()
S
60 1 14
add_product_resource()
S
62 1 12
emails_text_keys_to_translate()
S
74 1 5
localize_lock_fields_js()
S
78 1 3
getEmailObject()
S
80 1 3
translate_notification()
S
81 1 3
save_booking_action_handler()
S
77 1 4
update_translated_booking_meta()
S
71 1 5
remove_language_switcher()
S
79 1 3
unset_mine_from_bookings_views()
S
76 1 4
remove_resource_from_product()
S
66 1 9
get_translated_bookings()
S
79 1 3
getLanguage()
S
66 1 8
replace_tm_editor_custom_fields_with_own_sections()
S
74 1 5
remove_single_custom_fields_to_translate()
S
77 1 4
set_order_language_on_create_booking_page()
S
79 1 3
hide_bookings_type_on_tm_dashboard()
S
76 1 4
get_original_resources()
S
75 1 4
get_original_persons()
S
74 1 4
emails_options_to_translate()
S
68 1 8
translate_booking_reminder_email_texts()
S
79 1 3
translate_booking_cancelled_email_texts()
S
79 1 3
translate_booking_confirmed_email_texts()
S
79 1 3
__construct()
S
67 1 8