@@ -221,6 +221,9 @@ discard block |
||
221 | 221 | |
222 | 222 | } |
223 | 223 | |
224 | + /** |
|
225 | + * @param string $ini_setting |
|
226 | + */ |
|
224 | 227 | protected static function is_function_disabled( $ini_setting ) { |
225 | 228 | |
226 | 229 | if ( array_intersect( array( |
@@ -442,7 +445,7 @@ discard block |
||
442 | 445 | * |
443 | 446 | * @param string $existing_archive_filepath |
444 | 447 | * |
445 | - * @return null |
|
448 | + * @return \WP_Error|null |
|
446 | 449 | */ |
447 | 450 | public function set_existing_archive_filepath( $existing_archive_filepath ) { |
448 | 451 | |
@@ -1370,6 +1373,7 @@ discard block |
||
1370 | 1373 | /** |
1371 | 1374 | * Get the errors |
1372 | 1375 | * |
1376 | + * @param string $context |
|
1373 | 1377 | */ |
1374 | 1378 | public function get_errors( $context = null ) { |
1375 | 1379 | |
@@ -1385,7 +1389,7 @@ discard block |
||
1385 | 1389 | * Add an error to the errors stack |
1386 | 1390 | * |
1387 | 1391 | * @param string $context |
1388 | - * @param mixed $error |
|
1392 | + * @param string $error |
|
1389 | 1393 | */ |
1390 | 1394 | public function error( $context, $error ) { |
1391 | 1395 | |
@@ -1402,7 +1406,7 @@ discard block |
||
1402 | 1406 | /** |
1403 | 1407 | * Migrate errors to warnings |
1404 | 1408 | * |
1405 | - * @param null $context |
|
1409 | + * @param string $context |
|
1406 | 1410 | */ |
1407 | 1411 | private function errors_to_warnings( $context = null ) { |
1408 | 1412 |
@@ -19,14 +19,14 @@ discard block |
||
19 | 19 | abstract protected function test(); |
20 | 20 | |
21 | 21 | /** |
22 | - * @return mixed |
|
22 | + * @return string |
|
23 | 23 | */ |
24 | 24 | public function name() { |
25 | 25 | return $this->name; |
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | - * @return mixed|string |
|
29 | + * @return string |
|
30 | 30 | */ |
31 | 31 | public function result() { |
32 | 32 | |
@@ -524,7 +524,7 @@ discard block |
||
524 | 524 | var $name = 'WP Cron Test Failed'; |
525 | 525 | |
526 | 526 | /** |
527 | - * @return mixed |
|
527 | + * @return boolean |
|
528 | 528 | */ |
529 | 529 | protected function test() { |
530 | 530 | return (bool) get_option( 'hmbkp_wp_cron_test_failed' ); |
@@ -282,7 +282,6 @@ |
||
282 | 282 | * Move backup files from an existing directory and the new |
283 | 283 | * location |
284 | 284 | * |
285 | - * @param string $path The path to move the backups from |
|
286 | 285 | * @return void |
287 | 286 | */ |
288 | 287 | public function move_old_backups( $from ) { |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * Get the array of services options for this schedule |
271 | 271 | * |
272 | 272 | * @param $service |
273 | - * @param null $option |
|
273 | + * @param string $option |
|
274 | 274 | * |
275 | 275 | * @return array |
276 | 276 | */ |
@@ -344,7 +344,6 @@ discard block |
||
344 | 344 | /** |
345 | 345 | * Convenience function to format the file size |
346 | 346 | * |
347 | - * @param bool $cached |
|
348 | 347 | * |
349 | 348 | * @return bool|string |
350 | 349 | */ |
@@ -355,7 +354,7 @@ discard block |
||
355 | 354 | /** |
356 | 355 | * Whether the total filesize is being calculated |
357 | 356 | * |
358 | - * @return int The total of the file or directory |
|
357 | + * @return boolean The total of the file or directory |
|
359 | 358 | */ |
360 | 359 | public function is_site_size_being_calculated() { |
361 | 360 | return false !== get_transient( 'hmbkp_directory_filesizes_running' ); |
@@ -598,7 +597,6 @@ discard block |
||
598 | 597 | /** |
599 | 598 | * Set the schedule start time. |
600 | 599 | * |
601 | - * @param array $args |
|
602 | 600 | */ |
603 | 601 | public function set_schedule_start_time( $time ) { |
604 | 602 | |
@@ -616,6 +614,7 @@ discard block |
||
616 | 614 | /** |
617 | 615 | * Get the schedule reoccurrence |
618 | 616 | * |
617 | + * @return string |
|
619 | 618 | */ |
620 | 619 | public function get_reoccurrence() { |
621 | 620 | |
@@ -979,6 +978,8 @@ discard block |
||
979 | 978 | * Calculate schedule run time. |
980 | 979 | * |
981 | 980 | * @param int Timestamp $end |
981 | + * @param integer $start |
|
982 | + * @param integer $end |
|
982 | 983 | */ |
983 | 984 | public function update_average_schedule_run_time( $start, $end ) { |
984 | 985 |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * output as a human readable message |
233 | 233 | * |
234 | 234 | * @access public |
235 | - * @return null |
|
235 | + * @return string |
|
236 | 236 | */ |
237 | 237 | function hmbkp_backup_errors_message() { |
238 | 238 | |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | * |
284 | 284 | * @access public |
285 | 285 | * @param HM\BackUpWordPress\Scheduled_Backup $schedule |
286 | - * @return void |
|
286 | + * @return string|null |
|
287 | 287 | */ |
288 | 288 | function hmbkp_schedule_status( HM\BackUpWordPress\Scheduled_Backup $schedule, $echo = true ) { |
289 | 289 |