Completed
Push — add/sync-action ( 819ed1...faa3ed )
by
unknown
10:46
created
sync/class.jetpack-sync-client.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -187,6 +187,9 @@  discard block
 block discarded – undo
187 187
 		$this->network_options_whitelist = $options;
188 188
 	}
189 189
 
190
+	/**
191
+	 * @param integer $size
192
+	 */
190 193
 	function set_send_buffer_size( $size ) {
191 194
 		$this->checkout_size = $size;
192 195
 	}
@@ -421,6 +424,9 @@  discard block
 block discarded – undo
421 424
 		return $item;
422 425
 	}
423 426
 
427
+	/**
428
+	 * @param string $action_name
429
+	 */
424 430
 	private function buffer_includes_action( $buffer, $action_name ) {
425 431
 		foreach ( $buffer->get_items() as $item ) {
426 432
 			if ( $item[0] === $action_name ) {
@@ -448,6 +454,9 @@  discard block
 block discarded – undo
448 454
 		return $post;
449 455
 	}
450 456
 
457
+	/**
458
+	 * @param string $when
459
+	 */
451 460
 	private function schedule_sync( $when ) {
452 461
 		wp_schedule_single_event( strtotime( $when ), 'jetpack_sync_actions' );
453 462
 	}
Please login to merge, or discard this patch.
sync/class.jetpack-sync-queue.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@  discard block
 block discarded – undo
7 7
 	public $id;
8 8
 	public $items_with_ids;
9 9
 
10
+	/**
11
+	 * @param string $id
12
+	 */
10 13
 	public function __construct( $id, $items_with_ids ) {
11 14
 		$this->id             = $id;
12 15
 		$this->items_with_ids = $items_with_ids;
@@ -31,6 +34,9 @@  discard block
 block discarded – undo
31 34
 	public $id;
32 35
 	private $row_iterator;
33 36
 
37
+	/**
38
+	 * @param string $id
39
+	 */
34 40
 	function __construct( $id ) {
35 41
 		$this->id            = str_replace( '-', '_', $id ); // necessary to ensure we don't have ID collisions in the SQL
36 42
 		$this->row_iterator  = 0;
@@ -303,6 +309,9 @@  discard block
 block discarded – undo
303 309
 		return get_transient( $this->get_checkout_transient_name() );
304 310
 	}
305 311
 
312
+	/**
313
+	 * @param string $checkout_id
314
+	 */
306 315
 	private function set_checkout_id( $checkout_id ) {
307 316
 		return set_transient( $this->get_checkout_transient_name(), $checkout_id, 5*60 ); // 5 minute timeout
308 317
 	}
Please login to merge, or discard this patch.