WPTC_Restore_Download D

Total Complexity 220
Dependencies 12
Dependents 0
Total lines 1,334
Lines of code 864
Logical lines of code 632
Comment lines 82
Methods 48
Properties 22

Methods 48

Method Rating Maintainability Complexity Lines of code
add_files_and_start_download()
C
30 25 114
initiate_restore()
A
42 13 50
is_skip()
A
50 14 28
start_restore()
A
44 9 43
process_add_selected_files_to_restore()
A
49 10 28
get_files_by_folders()
A
50 8 27
set_flags_and_add_database_file()
S
44 5 45
is_retry_required()
S
60 7 13
check_and_exit_if_safe_for_write_limit_reached()
S
59 7 13
delete_future_files()
S
50 6 27
process_safe_for_write_check_options()
S
52 6 26
get_recorded_files_to_restore_table()
S
51 6 26
get_recorded_files_of_this_folder_to_restore_table()
S
52 6 24
is_checking_restorable_files_timedout()
S
53 6 23
check_for_other_operations()
S
54 6 21
safe_unlink_file()
S
54 6 20
process_dir()
S
51 5 25
process_file()
S
57 5 17
iterator_files()
S
58 5 17
delete_dir_if_empty()
S
59 5 14
select_downloaded_needed_files()
S
52 4 25
delete_state_files_from_download_list()
S
55 4 20
check_init_request()
S
62 4 12
add_future_files_and_get_restorable_files()
S
52 3 25
is_state_file()
S
57 3 17
setup_restore()
S
56 3 17
free_mysql_buffer()
S
69 4 6
continue_copy_from_bridge_if_already_started()
S
69 3 7
proper_restore_complete_exit()
S
66 3 8
__construct()
S
56 1 20
get_download_failed_file_count()
S
75 2 4
delete_download_failed_file_cache()
S
66 2 9
add_state_file()
S
63 2 10
restore_pre_check()
S
65 2 9
chunked_download_check()
S
68 2 7
get_cur_res_b_id()
S
70 2 7
init_utils()
S
71 2 6
set_downloaded_files_count()
S
72 2 5
save_future_files()
S
70 2 7
check_timeout_iter_file()
S
65 2 9
hard_reset_restore()
S
70 1 6
check_file()
S
76 1 4
init_restore_app_functions()
S
75 1 4
update_download_failed_file_count()
S
80 1 3
set_fs()
S
80 1 3
connect_db()
S
80 1 3
include_files()
S
72 1 5
get_folders()
S
74 1 5