@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * |
195 | 195 | * @access public |
196 | 196 | * |
197 | - * @param \WP_User $user User object. |
|
197 | + * @param \WP_User|null $user User object. |
|
198 | 198 | * @return \WP_User Expanded user object. |
199 | 199 | */ |
200 | 200 | public function expand_user( $user ) { |
@@ -626,7 +626,7 @@ discard block |
||
626 | 626 | * @param int $send_until Maximum duration of processing. |
627 | 627 | * @param boolean $state True if full sync has finished enqueueing this module, false otherwise. |
628 | 628 | * |
629 | - * @return array Number of actions enqueued, and next module state. |
|
629 | + * @return boolean Number of actions enqueued, and next module state. |
|
630 | 630 | */ |
631 | 631 | public function send_full_sync_actions( $config, $send_until, $state ) { |
632 | 632 | global $wpdb; |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | * @todo Refactor to prepare the SQL query before executing it. |
643 | 643 | * |
644 | 644 | * @param array $config Full sync configuration for this sync module. |
645 | - * @return array Number of items yet to be enqueued. |
|
645 | + * @return integer Number of items yet to be enqueued. |
|
646 | 646 | */ |
647 | 647 | public function estimate_full_sync_actions( $config ) { |
648 | 648 | global $wpdb; |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | * |
687 | 687 | * @access public |
688 | 688 | * |
689 | - * @return array Full sync actions of this module. |
|
689 | + * @return string[] Full sync actions of this module. |
|
690 | 690 | */ |
691 | 691 | public function get_full_sync_actions() { |
692 | 692 | return array( 'jetpack_full_sync_users' ); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * |
155 | 155 | * @access public |
156 | 156 | * |
157 | - * @return array Full sync actions of this module. |
|
157 | + * @return string[] Full sync actions of this module. |
|
158 | 158 | */ |
159 | 159 | public function get_full_sync_actions() { |
160 | 160 | return array( 'jetpack_full_sync_woocommerce_order_items' ); |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | * @param int $send_until Maximum duration of processing. |
252 | 252 | * @param boolean $state True if full sync has finished enqueueing this module, false otherwise. |
253 | 253 | * |
254 | - * @return array Number of actions enqueued, and next module state. |
|
254 | + * @return boolean Number of actions enqueued, and next module state. |
|
255 | 255 | */ |
256 | 256 | public function send_full_sync_actions( $config, $send_until, $state ) { |
257 | 257 | return $this->send_all_ids_as_action( 'jetpack_full_sync_woocommerce_order_items', $this->order_item_table_name, 'order_item_id', $this->get_where_sql( $config ), $send_until, $state ); |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | * @todo Refactor the SQL query to use $wpdb->prepare(). |
266 | 266 | * |
267 | 267 | * @param array $config Full sync configuration for this sync module. |
268 | - * @return array Number of items yet to be enqueued. |
|
268 | + * @return integer Number of items yet to be enqueued. |
|
269 | 269 | */ |
270 | 270 | public function estimate_full_sync_actions( $config ) { |
271 | 271 | global $wpdb; |