Completed
Push — add/min-max-id-endpoints ( c5fe65...ec85df )
by
unknown
06:44
created
json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -228,6 +228,9 @@
 block discarded – undo
228 228
 		);
229 229
 	}
230 230
 
231
+	/**
232
+	 * @param Queue $queue
233
+	 */
231 234
 	protected function get_buffer( $queue, $number_of_items ) {
232 235
 		$start = time();
233 236
 		$max_duration = 5; // this will try to get the buffer
Please login to merge, or discard this patch.
packages/sync/src/modules/Comments.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
 	 *
221 221
 	 * @access public
222 222
 	 *
223
-	 * @return array Full sync actions of this module.
223
+	 * @return string[] Full sync actions of this module.
224 224
 	 */
225 225
 	public function get_full_sync_actions() {
226 226
 		return array( 'jetpack_full_sync_comments' );
Please login to merge, or discard this patch.
packages/sync/src/modules/Posts.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 	 * @todo Use $wpdb->prepare for the SQL query.
202 202
 	 *
203 203
 	 * @param array $config Full sync configuration for this sync module.
204
-	 * @return array Number of items yet to be enqueued.
204
+	 * @return integer Number of items yet to be enqueued.
205 205
 	 */
206 206
 	public function estimate_full_sync_actions( $config ) {
207 207
 		global $wpdb;
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 	 *
238 238
 	 * @access public
239 239
 	 *
240
-	 * @return array Full sync actions of this module.
240
+	 * @return string[] Full sync actions of this module.
241 241
 	 */
242 242
 	public function get_full_sync_actions() {
243 243
 		return array( 'jetpack_full_sync_posts' );
Please login to merge, or discard this patch.
packages/sync/src/modules/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.
packages/sync/src/modules/Users.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 	 *
184 184
 	 * @access public
185 185
 	 *
186
-	 * @param \WP_User $user User object.
186
+	 * @param \WP_User|null $user User object.
187 187
 	 * @return \WP_User Expanded user object.
188 188
 	 */
189 189
 	public function expand_user( $user ) {
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
 	 * @todo Refactor to prepare the SQL query before executing it.
615 615
 	 *
616 616
 	 * @param array $config Full sync configuration for this sync module.
617
-	 * @return array Number of items yet to be enqueued.
617
+	 * @return integer Number of items yet to be enqueued.
618 618
 	 */
619 619
 	public function estimate_full_sync_actions( $config ) {
620 620
 		global $wpdb;
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
 	 *
659 659
 	 * @access public
660 660
 	 *
661
-	 * @return array Full sync actions of this module.
661
+	 * @return string[] Full sync actions of this module.
662 662
 	 */
663 663
 	public function get_full_sync_actions() {
664 664
 		return array( 'jetpack_full_sync_users' );
Please login to merge, or discard this patch.
packages/sync/src/modules/Module.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	 *
54 54
 	 * @param string $object_type Type of the sync object.
55 55
 	 * @param int    $id          ID of the sync object.
56
-	 * @return mixed Object, or false if the object is invalid.
56
+	 * @return boolean Object, or false if the object is invalid.
57 57
 	 */
58 58
 	public function get_object_by_id( $object_type, $id ) {
59 59
 		return false;
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
 	 * @access protected
153 153
 	 *
154 154
 	 * @param array $action_names     Action names we're interested in.
155
-	 * @param array $actions_to_count Unfiltered list of actions we want to count.
156
-	 * @return array Number of actions that we're interested in.
155
+	 * @param string[] $actions_to_count Unfiltered list of actions we want to count.
156
+	 * @return integer Number of actions that we're interested in.
157 157
 	 */
158 158
 	protected function count_actions( $action_names, $actions_to_count ) {
159 159
 		return count( array_intersect( $action_names, $actions_to_count ) );
Please login to merge, or discard this patch.