@@ -325,7 +325,7 @@ |
||
325 | 325 | * @access protected |
326 | 326 | * |
327 | 327 | * @param string $status Comment status. |
328 | - * @return string|bool New comment_approved value, false if the status doesn't affect it. |
|
328 | + * @return string|false New comment_approved value, false if the status doesn't affect it. |
|
329 | 329 | */ |
330 | 330 | protected function comment_status_to_approval_value( $status ) { |
331 | 331 | switch ( (string) $status ) { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * |
65 | 65 | * @access public |
66 | 66 | * |
67 | - * @param Automattic\Jetpack\Sync\Codec_Interface $codec Codec instance. |
|
67 | + * @param Codec_Interface $codec Codec instance. |
|
68 | 68 | */ |
69 | 69 | public function set_codec( Codec_Interface $codec ) { |
70 | 70 | $this->codec = $codec; |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * @access public |
223 | 223 | * |
224 | 224 | * @param array $config Full sync configuration for this sync module. |
225 | - * @return array Number of items yet to be enqueued. |
|
225 | + * @return integer Number of items yet to be enqueued. |
|
226 | 226 | */ |
227 | 227 | public function estimate_full_sync_actions( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
228 | 228 | return 1; |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | * |
234 | 234 | * @access public |
235 | 235 | * |
236 | - * @return array Full sync actions of this module. |
|
236 | + * @return string[] Full sync actions of this module. |
|
237 | 237 | */ |
238 | 238 | public function get_full_sync_actions() { |
239 | 239 | return array( 'jetpack_full_sync_callables' ); |
@@ -220,7 +220,7 @@ |
||
220 | 220 | * |
221 | 221 | * @access public |
222 | 222 | * |
223 | - * @return array Full sync actions of this module. |
|
223 | + * @return string[] Full sync actions of this module. |
|
224 | 224 | */ |
225 | 225 | public function get_full_sync_actions() { |
226 | 226 | return array( 'jetpack_full_sync_comments' ); |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * |
159 | 159 | * @param array $config Full sync configuration for this sync module. |
160 | 160 | * |
161 | - * @return array Number of items yet to be enqueued. |
|
161 | + * @return integer Number of items yet to be enqueued. |
|
162 | 162 | */ |
163 | 163 | public function estimate_full_sync_actions( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
164 | 164 | return 1; |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * |
170 | 170 | * @access public |
171 | 171 | * |
172 | - * @return array Full sync actions of this module. |
|
172 | + * @return string[] Full sync actions of this module. |
|
173 | 173 | */ |
174 | 174 | public function get_full_sync_actions() { |
175 | 175 | return array( 'jetpack_full_sync_constants' ); |
@@ -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 ) { |
@@ -64,8 +64,8 @@ |
||
64 | 64 | * Get a single Meta Result. |
65 | 65 | * |
66 | 66 | * @param string $object_type post, comment, term, user. |
67 | - * @param null $id Object ID. |
|
68 | - * @param null $meta_key Meta Key. |
|
67 | + * @param integer $id Object ID. |
|
68 | + * @param string $meta_key Meta Key. |
|
69 | 69 | * |
70 | 70 | * @return mixed|null |
71 | 71 | */ |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * @todo Use $wpdb->prepare for the SQL query. |
202 | 202 | * |
203 | 203 | * @param array $config Full sync configuration for this sync module. |
204 | - * @return array Number of items yet to be enqueued. |
|
204 | + * @return integer Number of items yet to be enqueued. |
|
205 | 205 | */ |
206 | 206 | public function estimate_full_sync_actions( $config ) { |
207 | 207 | global $wpdb; |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * |
238 | 238 | * @access public |
239 | 239 | * |
240 | - * @return array Full sync actions of this module. |
|
240 | + * @return string[] Full sync actions of this module. |
|
241 | 241 | */ |
242 | 242 | public function get_full_sync_actions() { |
243 | 243 | return array( 'jetpack_full_sync_posts' ); |