@@ -213,6 +213,10 @@ discard block |
||
213 | 213 | * |
214 | 214 | * @return bool |
215 | 215 | */ |
216 | + |
|
217 | + /** |
|
218 | + * @param string $error_message |
|
219 | + */ |
|
216 | 220 | public function send_notification_error($to, $from, $subject, $backup_name, $params, $error_message) |
217 | 221 | { |
218 | 222 | |
@@ -638,6 +642,10 @@ discard block |
||
638 | 642 | * Add file to archive |
639 | 643 | * |
640 | 644 | */ |
645 | + |
|
646 | + /** |
|
647 | + * @param integer $append |
|
648 | + */ |
|
641 | 649 | public function add_file_to_archive($file_info, $start_at_byte, $byte_limit = 0, $append, $filesystem) |
642 | 650 | { |
643 | 651 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Returns the filename with encrypted suffix |
72 | 72 | * |
73 | - * @param $filename |
|
73 | + * @param string $filename |
|
74 | 74 | * @return string |
75 | 75 | */ |
76 | 76 | public function get_encrypted_target_backup_file_name( $filename ) { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Returns the filename without encrypted suffix |
83 | 83 | * |
84 | - * @param $filename |
|
84 | + * @param string $filename |
|
85 | 85 | * @return string |
86 | 86 | */ |
87 | 87 | public function get_decrypted_target_backup_file_name( $filename ) { |
@@ -96,8 +96,8 @@ discard block |
||
96 | 96 | * @param string $dest File name where the encryped file should be written to. |
97 | 97 | * @param string $key The key used for the encryption |
98 | 98 | * @param int $start Start position for reading when doing incremental mode. |
99 | - * @param string $iv The IV key to use. |
|
100 | - * @param bool $verfication Weather we should we try to verify the decryption. |
|
99 | + * @param integer $iv The IV key to use. |
|
100 | + * @param bool $verification Weather we should we try to verify the decryption. |
|
101 | 101 | * @return string|false Returns the file name that has been created or FALSE if an error occured |
102 | 102 | */ |
103 | 103 | public function encrypt_file($source, $dest = "" , $key= "", $start = 0, $iv = 0, $verification = true, $recursive = false) |
@@ -206,6 +206,9 @@ discard block |
||
206 | 206 | return array("target_file" => $dest, "finished" => 1); |
207 | 207 | } |
208 | 208 | |
209 | + /** |
|
210 | + * @param string $file |
|
211 | + */ |
|
209 | 212 | public function verify_encrypted_file($file) { |
210 | 213 | if(is_object($this->logger)) { |
211 | 214 | $this->logger->info(sprintf('Verifying encrypted file %s', $file)); |
@@ -224,7 +227,7 @@ discard block |
||
224 | 227 | * @param string $dest File name where the decryped file should be written to. |
225 | 228 | * @param string $key The key used for the decryption (must be the same as for encryption) |
226 | 229 | * @param int $start Start position for reading when doing incremental mode. |
227 | - * @param string $iv The IV key to use. |
|
230 | + * @param integer $iv The IV key to use. |
|
228 | 231 | * @return string|false Returns the file name that has been created or FALSE if an error occured |
229 | 232 | */ |
230 | 233 | public function decrypt_file($source, $dest = "", $key = "", $start = 0, $iv = 0, $recursive = false) |
@@ -207,6 +207,9 @@ discard block |
||
207 | 207 | return $this->start_filesystem->normalizeFileInfo($info); |
208 | 208 | } |
209 | 209 | |
210 | + /** |
|
211 | + * @param string $file |
|
212 | + */ |
|
210 | 213 | public function get_storage_path_file_info($file) |
211 | 214 | { |
212 | 215 | return $this->getMetadataFull('storage_adapter', $file); |
@@ -741,6 +744,9 @@ discard block |
||
741 | 744 | |
742 | 745 | } |
743 | 746 | |
747 | + /** |
|
748 | + * @param string $tmp_file |
|
749 | + */ |
|
744 | 750 | public function estimate_reading_time($tmp_file) |
745 | 751 | { |
746 | 752 | $this->logger->debug(sprintf(("Estimating file system reading time"))); |
@@ -781,6 +787,9 @@ discard block |
||
781 | 787 | return $name; |
782 | 788 | } |
783 | 789 | |
790 | + /** |
|
791 | + * @param string $field |
|
792 | + */ |
|
784 | 793 | public function sort_by(&$array, $field, $direction = 'asc') |
785 | 794 | { |
786 | 795 | if (strtolower($direction) == "desc" || $direction == SORT_DESC) { |
@@ -651,7 +651,7 @@ discard block |
||
651 | 651 | * Update Wordpress url in wp-config.php method |
652 | 652 | * @param $wp_path |
653 | 653 | * @param $url |
654 | - * @param $mysqli |
|
654 | + * @param mysqli $mysqli |
|
655 | 655 | * @return bool |
656 | 656 | * @throws Exception |
657 | 657 | */ |
@@ -781,7 +781,7 @@ discard block |
||
781 | 781 | * Get backup hash method |
782 | 782 | * |
783 | 783 | * @param $backup_file |
784 | - * @return bool |
|
784 | + * @return false|string |
|
785 | 785 | */ |
786 | 786 | private function get_hash_from_backup($backup_file) |
787 | 787 | { |
@@ -1004,7 +1004,7 @@ discard block |
||
1004 | 1004 | /** |
1005 | 1005 | * Return bytes from human readable value |
1006 | 1006 | * |
1007 | - * @param $val |
|
1007 | + * @param string $val |
|
1008 | 1008 | * @return int |
1009 | 1009 | * |
1010 | 1010 | */ |
@@ -1088,7 +1088,7 @@ discard block |
||
1088 | 1088 | * Sort_by method |
1089 | 1089 | * |
1090 | 1090 | * @param $array |
1091 | - * @param $field |
|
1091 | + * @param string $field |
|
1092 | 1092 | * @param string $direction |
1093 | 1093 | * @return bool |
1094 | 1094 | */ |
@@ -1097,6 +1097,10 @@ discard block |
||
1097 | 1097 | $direction = strtolower($direction); |
1098 | 1098 | |
1099 | 1099 | usort($array, |
1100 | + |
|
1101 | + /** |
|
1102 | + * @param string $b |
|
1103 | + */ |
|
1100 | 1104 | function($a, $b) use($field, $direction){ |
1101 | 1105 | |
1102 | 1106 | $a = $a[$field]; |
@@ -1162,7 +1166,7 @@ discard block |
||
1162 | 1166 | * Serialize fix methods below for mysql query lines |
1163 | 1167 | * |
1164 | 1168 | * @param $query |
1165 | - * @return string|string[]|null |
|
1169 | + * @return string |
|
1166 | 1170 | */ |
1167 | 1171 | |
1168 | 1172 | function do_serialized_fix($query) |