Completed
Push — try/full-sync-send-immediately ( 8267d6...47cfe9 )
by
unknown
15:18 queued 07:18
created
packages/sync/src/modules/class-module.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 ) );
Please login to merge, or discard this patch.