Completed
Push — add/plugins-sync-module-packag... ( e83b3d...3bfca9 )
by
unknown
183:55 queued 174:52
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/Queue.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -240,6 +240,9 @@  discard block
 block discarded – undo
240 240
 		return true;
241 241
 	}
242 242
 
243
+	/**
244
+	 * @param Queue_Buffer $buffer
245
+	 */
243 246
 	function close( $buffer, $ids_to_remove = null ) {
244 247
 		$is_valid = $this->validate_checkout( $buffer );
245 248
 
@@ -344,6 +347,9 @@  discard block
 block discarded – undo
344 347
 		return false;
345 348
 	}
346 349
 
350
+	/**
351
+	 * @param string $checkout_id
352
+	 */
347 353
 	private function set_checkout_id( $checkout_id ) {
348 354
 		global $wpdb;
349 355
 
Please login to merge, or discard this patch.
packages/sync/src/Sender.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@  discard block
 block discarded – undo
70 70
 		return (float) get_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, 0 );
71 71
 	}
72 72
 
73
+	/**
74
+	 * @param integer $time
75
+	 */
73 76
 	public function set_next_sync_time( $time, $queue_name ) {
74 77
 		return update_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, $time, true );
75 78
 	}
@@ -100,6 +103,9 @@  discard block
 block discarded – undo
100 103
 		return $this->do_sync_and_set_delays( $this->sync_queue );
101 104
 	}
102 105
 
106
+	/**
107
+	 * @param Queue $queue
108
+	 */
103 109
 	public function do_sync_and_set_delays( $queue ) {
104 110
 		// don't sync if importing
105 111
 		if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) {
@@ -357,6 +363,10 @@  discard block
 block discarded – undo
357 363
 	}
358 364
 
359 365
 	// in seconds
366
+
367
+	/**
368
+	 * @param double $seconds
369
+	 */
360 370
 	function set_max_dequeue_time( $seconds ) {
361 371
 		$this->max_dequeue_time = $seconds;
362 372
 	}
Please login to merge, or discard this patch.
packages/sync/src/modules/Full_Sync.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -194,6 +194,9 @@  discard block
 block discarded – undo
194 194
 		do_action( 'jetpack_full_sync_end', '', $range );
195 195
 	}
196 196
 
197
+	/**
198
+	 * @param string $type
199
+	 */
197 200
 	function get_range( $type ) {
198 201
 		global $wpdb;
199 202
 		if ( ! in_array( $type, array( 'comments', 'posts' ) ) ) {
@@ -404,6 +407,9 @@  discard block
 block discarded – undo
404 407
 		$listener->get_full_sync_queue()->reset();
405 408
 	}
406 409
 
410
+	/**
411
+	 * @param integer $default
412
+	 */
407 413
 	private function get_status_option( $name, $default = null ) {
408 414
 		$value = \Jetpack_Options::get_raw_option( self::STATUS_OPTION_PREFIX . "_$name", $default );
409 415
 
Please login to merge, or discard this patch.
packages/sync/src/Listener.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -178,6 +178,9 @@
 block discarded – undo
178 178
 		$queue->add_all( $data_to_enqueue );
179 179
 	}
180 180
 
181
+	/**
182
+	 * @param Queue $queue
183
+	 */
181 184
 	function enqueue_action( $current_filter, $args, $queue ) {
182 185
 		// don't enqueue an action during the outbound http request - this prevents recursion
183 186
 		if ( \Jetpack_Sync_Settings::is_sending() ) {
Please login to merge, or discard this patch.