@@ -334,6 +334,9 @@ |
||
334 | 334 | $this->xcloner_file_system->backup_storage_cleanup(); |
335 | 335 | } |
336 | 336 | |
337 | + /** |
|
338 | + * @param integer $id |
|
339 | + */ |
|
337 | 340 | public function xcloner_scheduler_callback($id, $schedule = "") |
338 | 341 | { |
339 | 342 | if($id) |
@@ -580,6 +580,9 @@ discard block |
||
580 | 580 | |
581 | 581 | } |
582 | 582 | |
583 | + /** |
|
584 | + * @param mysqli $mysqli |
|
585 | + */ |
|
583 | 586 | private function update_wp_url($wp_path, $url, $mysqli) |
584 | 587 | { |
585 | 588 | $wp_config = $wp_path.DS."wp-config.php"; |
@@ -886,6 +889,9 @@ discard block |
||
886 | 889 | $this->send_response(200, $return); |
887 | 890 | } |
888 | 891 | |
892 | + /** |
|
893 | + * @param string $val |
|
894 | + */ |
|
889 | 895 | private function return_bytes($val) { |
890 | 896 | $val = trim($val); |
891 | 897 | $last = strtolower($val[strlen($val)-1]); |
@@ -943,6 +949,9 @@ discard block |
||
943 | 949 | return $files; |
944 | 950 | } |
945 | 951 | |
952 | + /** |
|
953 | + * @param string $field |
|
954 | + */ |
|
946 | 955 | private function sort_by( &$array, $field, $direction = 'asc') |
947 | 956 | { |
948 | 957 | $direction = strtolower($direction); |
@@ -988,6 +997,9 @@ discard block |
||
988 | 997 | * Serialize fix methods below for mysql query lines |
989 | 998 | */ |
990 | 999 | |
1000 | + /** |
|
1001 | + * @return string |
|
1002 | + */ |
|
991 | 1003 | function do_serialized_fix($query) |
992 | 1004 | { |
993 | 1005 | $query = str_replace(array("\\n","\\r","\\'"), array("","","\""), ($query)); |