@@ -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 ) { |
@@ -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; |
@@ -233,6 +236,9 @@ discard block |
||
233 | 236 | return false; |
234 | 237 | } |
235 | 238 | |
239 | + /** |
|
240 | + * @param string $role |
|
241 | + */ |
|
236 | 242 | function current_user_can( $role ) { |
237 | 243 | return current_user_can( $role ); |
238 | 244 | } |