|
@@ -66,7 +66,7 @@ discard block |
|
|
block discarded – undo |
|
66
|
66
|
* |
|
67
|
67
|
* @param string $object_type Type of the sync object. |
|
68
|
68
|
* @param int $id ID of the sync object. |
|
69
|
|
- * @return mixed Object, or false if the object is invalid. |
|
|
69
|
+ * @return boolean Object, or false if the object is invalid. |
|
70
|
70
|
*/ |
|
71
|
71
|
public function get_object_by_id( $object_type, $id ) { |
|
72
|
72
|
return false; |
|
@@ -142,7 +142,7 @@ discard block |
|
|
block discarded – undo |
|
142
|
142
|
* @param float $send_until timestamp until we want this request to send full sync events. |
|
143
|
143
|
* @param boolean $state True if full sync has finished enqueueing this module, false otherwise. |
|
144
|
144
|
* |
|
145
|
|
- * @return array Number of actions sent, and next module state. |
|
|
145
|
+ * @return integer[] Number of actions sent, and next module state. |
|
146
|
146
|
*/ |
|
147
|
147
|
public function send_full_sync_actions( $config, $send_until, $state ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
|
148
|
148
|
// In subclasses, return the number of actions sent, and next module state (true == done). |
|
@@ -181,8 +181,8 @@ discard block |
|
|
block discarded – undo |
|
181
|
181
|
* @access protected |
|
182
|
182
|
* |
|
183
|
183
|
* @param array $action_names Action names we're interested in. |
|
184
|
|
- * @param array $actions_to_count Unfiltered list of actions we want to count. |
|
185
|
|
- * @return array Number of actions that we're interested in. |
|
|
184
|
+ * @param string[] $actions_to_count Unfiltered list of actions we want to count. |
|
|
185
|
+ * @return integer Number of actions that we're interested in. |
|
186
|
186
|
*/ |
|
187
|
187
|
protected function count_actions( $action_names, $actions_to_count ) { |
|
188
|
188
|
return count( array_intersect( $action_names, $actions_to_count ) ); |
|
@@ -288,7 +288,7 @@ discard block |
|
|
block discarded – undo |
|
288
|
288
|
* @param string $id_field Name of the ID field in the database. |
|
289
|
289
|
* @param string $where_sql The SQL WHERE clause to filter to the desired items. |
|
290
|
290
|
* @param float $send_until timestamp until we want this request to send full sync events. |
|
291
|
|
- * @param array $status the current module full sync status. |
|
|
291
|
+ * @param boolean $status the current module full sync status. |
|
292
|
292
|
* |
|
293
|
293
|
* @return array Status, the module full sync status updated. |
|
294
|
294
|
*/ |