@@ -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; |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * |
| 68 | 68 | * @param string $object_type Type of the sync object. |
| 69 | 69 | * @param int $id ID of the sync object. |
| 70 | - * @return mixed Object, or false if the object is invalid. |
|
| 70 | + * @return boolean Object, or false if the object is invalid. |
|
| 71 | 71 | */ |
| 72 | 72 | public function get_object_by_id( $object_type, $id ) { |
| 73 | 73 | return false; |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * @param float $send_until timestamp until we want this request to send full sync events. |
| 144 | 144 | * @param boolean $state True if full sync has finished enqueueing this module, false otherwise. |
| 145 | 145 | * |
| 146 | - * @return array Number of actions sent, and next module state. |
|
| 146 | + * @return integer[] Number of actions sent, and next module state. |
|
| 147 | 147 | */ |
| 148 | 148 | public function send_full_sync_actions( $config, $send_until, $state ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 149 | 149 | // In subclasses, return the number of actions sent, and next module state (true == done). |
@@ -182,8 +182,8 @@ discard block |
||
| 182 | 182 | * @access protected |
| 183 | 183 | * |
| 184 | 184 | * @param array $action_names Action names we're interested in. |
| 185 | - * @param array $actions_to_count Unfiltered list of actions we want to count. |
|
| 186 | - * @return array Number of actions that we're interested in. |
|
| 185 | + * @param string[] $actions_to_count Unfiltered list of actions we want to count. |
|
| 186 | + * @return integer Number of actions that we're interested in. |
|
| 187 | 187 | */ |
| 188 | 188 | protected function count_actions( $action_names, $actions_to_count ) { |
| 189 | 189 | return count( array_intersect( $action_names, $actions_to_count ) ); |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | * @param float $send_until timestamp until we want this request to send full sync events. |
| 292 | 292 | * @param boolean $status the current module full sync status. |
| 293 | 293 | * |
| 294 | - * @return array Status, the module full sync status updated. |
|
| 294 | + * @return boolean Status, the module full sync status updated. |
|
| 295 | 295 | */ |
| 296 | 296 | protected function send_all_ids_as_action( $action_name, $table_name, $id_field, $where_sql, $send_until, $status ) { |
| 297 | 297 | global $wpdb; |