Completed
Push — try/full-sync-send-immediately ( 222d55...6f596d )
by
unknown
08:24
created
packages/sync/src/modules/class-constants.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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' );
Please login to merge, or discard this patch.
packages/sync/src/modules/class-module.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -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
 	 */
Please login to merge, or discard this patch.
packages/sync/src/modules/class-terms.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 	 *
163 163
 	 * @access public
164 164
 	 *
165
-	 * @return array Full sync actions of this module.
165
+	 * @return string[] Full sync actions of this module.
166 166
 	 */
167 167
 	public function get_full_sync_actions() {
168 168
 		return array( 'jetpack_full_sync_terms' );
Please login to merge, or discard this patch.