@@ -58,7 +58,7 @@ |
||
58 | 58 | * Loads an RSS feed using `fetch_feed`. |
59 | 59 | * |
60 | 60 | * @param string $feed The RSS feed URL to load. |
61 | - * @return SimplePie|WP_Error The RSS object or error. |
|
61 | + * @return string The RSS object or error. |
|
62 | 62 | */ |
63 | 63 | private static function load_feed( $feed ) { |
64 | 64 | $rss = fetch_feed( esc_url_raw( $feed ) ); |
@@ -165,6 +165,9 @@ discard block |
||
165 | 165 | return $this->get_atomic_cloud_site_option( 'launch-status' ); |
166 | 166 | } |
167 | 167 | |
168 | + /** |
|
169 | + * @param string $option |
|
170 | + */ |
|
168 | 171 | function get_atomic_cloud_site_option( $option ) { |
169 | 172 | if ( ! jetpack_is_atomic_site() ) { |
170 | 173 | return false; |
@@ -229,6 +232,9 @@ discard block |
||
229 | 232 | return true; |
230 | 233 | } |
231 | 234 | |
235 | + /** |
|
236 | + * @param string $role |
|
237 | + */ |
|
232 | 238 | function current_user_can( $role ) { |
233 | 239 | return current_user_can( $role ); |
234 | 240 | } |
@@ -149,7 +149,7 @@ |
||
149 | 149 | * |
150 | 150 | * @access public |
151 | 151 | * |
152 | - * @return int|null |
|
152 | + * @return null|double |
|
153 | 153 | */ |
154 | 154 | public function get_sync_progress_percentage() { |
155 | 155 | if ( ! $this->is_started() || $this->is_finished() ) { |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | * |
412 | 412 | * @access public |
413 | 413 | * |
414 | - * @return int|null |
|
414 | + * @return null|double |
|
415 | 415 | */ |
416 | 416 | public function get_sync_progress_percentage() { |
417 | 417 | if ( ! $this->is_started() || $this->is_finished() ) { |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | * @access private |
626 | 626 | * |
627 | 627 | * @param string $name Name of the option. |
628 | - * @param mixed $default Default value of the option. |
|
628 | + * @param integer $default Default value of the option. |
|
629 | 629 | * @return mixed Option value. |
630 | 630 | */ |
631 | 631 | private function get_status_option( $name, $default = null ) { |