@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | * @access public |
337 | 337 | * @static |
338 | 338 | * |
339 | - * @return bool|null False if sync is not allowed. |
|
339 | + * @return false|null False if sync is not allowed. |
|
340 | 340 | */ |
341 | 341 | public static function do_initial_sync() { |
342 | 342 | // Lets not sync if we are not suppose to. |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | * @static |
507 | 507 | * |
508 | 508 | * @param array $sync_modules The list of sync modules declared prior to this filter. |
509 | - * @return array A list of sync modules that now includes Woo's modules. |
|
509 | + * @return string[] A list of sync modules that now includes Woo's modules. |
|
510 | 510 | */ |
511 | 511 | public static function add_woocommerce_sync_module( $sync_modules ) { |
512 | 512 | $sync_modules[] = 'Automattic\\Jetpack\\Sync\\Modules\\WooCommerce'; |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | * @static |
534 | 534 | * |
535 | 535 | * @param array $sync_modules The list of sync modules declared prior to this filer. |
536 | - * @return array A list of sync modules that now includes WP Super Cache's modules. |
|
536 | + * @return string[] A list of sync modules that now includes WP Super Cache's modules. |
|
537 | 537 | */ |
538 | 538 | public static function add_wp_super_cache_sync_module( $sync_modules ) { |
539 | 539 | $sync_modules[] = 'Automattic\\Jetpack\\Sync\\Modules\\WP_Super_Cache'; |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | /** |
182 | 182 | * Return a hosting provider using a set of known constants. |
183 | 183 | * |
184 | - * @return mixed A host identifier string or false. |
|
184 | + * @return string|false A host identifier string or false. |
|
185 | 185 | */ |
186 | 186 | public function get_hosting_provider_by_known_constant() { |
187 | 187 | $hosting_provider_constants = array( |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | /** |
210 | 210 | * Return a hosting provider using a set of known classes. |
211 | 211 | * |
212 | - * @return mixed A host identifier string or false. |
|
212 | + * @return string|false A host identifier string or false. |
|
213 | 213 | */ |
214 | 214 | public function get_hosting_provider_by_known_class() { |
215 | 215 | $hosting_provider = false; |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | /** |
227 | 227 | * Return a hosting provider using a set of known functions. |
228 | 228 | * |
229 | - * @return mixed A host identifier string or false. |
|
229 | + * @return string|false A host identifier string or false. |
|
230 | 230 | */ |
231 | 231 | public function get_hosting_provider_by_known_function() { |
232 | 232 | $hosting_provider = false; |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | * |
442 | 442 | * @param string $option Option value from the site. |
443 | 443 | * @param callable $url_function Function retrieving the URL to normalize. |
444 | - * @return mixed|string URL. |
|
444 | + * @return callable URL. |
|
445 | 445 | */ |
446 | 446 | public static function normalize_www_in_url( $option, $url_function ) { |
447 | 447 | $url = wp_parse_url( call_user_func( $url_function ) ); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | /** |
77 | 77 | * Wraps JSON |
78 | 78 | * |
79 | - * @param object|array $any Wrapping value. |
|
79 | + * @param string $any Wrapping value. |
|
80 | 80 | * @param array $seen_nodes Seen nodes. |
81 | 81 | * @return array |
82 | 82 | */ |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * Prevent adding items to the queue if it hasn't sent an item for 15 mins |
158 | 158 | * AND the queue is over 1000 items long (by default). |
159 | 159 | * |
160 | - * @param object $queue Sync queue. |
|
160 | + * @param string $queue Sync queue. |
|
161 | 161 | * @return bool |
162 | 162 | */ |
163 | 163 | public function can_add_to_queue( $queue ) { |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | * Sync Data Loss Handler |
361 | 361 | * |
362 | 362 | * @param Queue $queue Sync queue. |
363 | - * @return boolean was send successful |
|
363 | + * @return null|Items was send successful |
|
364 | 364 | */ |
365 | 365 | public function sync_data_loss( $queue ) { |
366 | 366 | if ( ! Settings::is_sync_enabled() ) { |
@@ -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' ); |