@@ -258,7 +258,7 @@ |
||
258 | 258 | * |
259 | 259 | * @access public |
260 | 260 | * @param Scheduled_Backup $schedule |
261 | - * @return void |
|
261 | + * @return string|null |
|
262 | 262 | */ |
263 | 263 | function schedule_status( Scheduled_Backup $schedule, $echo = true ) { |
264 | 264 |
@@ -19,6 +19,9 @@ discard block |
||
19 | 19 | $this->database_dump_filename = $database_dump_filename; |
20 | 20 | } |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $type |
|
24 | + */ |
|
22 | 25 | public function set_type( $type ) { |
23 | 26 | $this->type = $type; |
24 | 27 | } |
@@ -169,7 +172,6 @@ discard block |
||
169 | 172 | * issues with the backup process. |
170 | 173 | * |
171 | 174 | * @param string $context The context for the warning. |
172 | - * @param string $error The warning that was encountered. |
|
173 | 175 | */ |
174 | 176 | public function warning( $context, $warning ) { |
175 | 177 |
@@ -6,6 +6,9 @@ discard block |
||
6 | 6 | |
7 | 7 | private static $instance; |
8 | 8 | |
9 | + /** |
|
10 | + * @param string $root_url |
|
11 | + */ |
|
9 | 12 | function __construct( $root_url ) { |
10 | 13 | |
11 | 14 | $this->root_url = $root_url; |
@@ -36,6 +39,9 @@ discard block |
||
36 | 39 | |
37 | 40 | } |
38 | 41 | |
42 | + /** |
|
43 | + * @param string $endpoint |
|
44 | + */ |
|
39 | 45 | function fetch( $endpoint, $ttl = 10 ) { |
40 | 46 | |
41 | 47 | $request_url = $this->root_url . $endpoint; |