Completed
Push — add/videopress-direct-integrat... ( 22be88...b6188c )
by
unknown
09:48
created
sync/class.jetpack-sync-module.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@  discard block
 block discarded – undo
42 42
 		return array();
43 43
 	}
44 44
 
45
+	/**
46
+	 * @param string[] $actions_to_count
47
+	 */
45 48
 	protected function count_actions( $action_names, $actions_to_count ) {
46 49
 		return count( array_intersect( $action_names, $actions_to_count ) );
47 50
 	}
@@ -50,6 +53,9 @@  discard block
 block discarded – undo
50 53
 		return crc32( json_encode( $values ) );
51 54
 	}
52 55
 
56
+	/**
57
+	 * @param integer $new_sum
58
+	 */
53 59
 	protected function still_valid_checksum( $sums_to_check, $name, $new_sum ) {
54 60
 		if ( isset( $sums_to_check[ $name ] ) && $sums_to_check[ $name ] === $new_sum ) {
55 61
 			return true;
@@ -58,6 +64,10 @@  discard block
 block discarded – undo
58 64
 		return false;
59 65
 	}
60 66
 
67
+	/**
68
+	 * @param string $action_name
69
+	 * @param string $id_field
70
+	 */
61 71
 	protected function enqueue_all_ids_as_action( $action_name, $table_name, $id_field, $where_sql ) {
62 72
 		global $wpdb;
63 73
 
@@ -84,6 +94,9 @@  discard block
 block discarded – undo
84 94
 		return $chunk_count;
85 95
 	}
86 96
 
97
+	/**
98
+	 * @param string $meta_type
99
+	 */
87 100
 	protected function get_metadata( $ids, $meta_type ) {
88 101
 		global $wpdb;
89 102
 		$table = _get_meta_table( $meta_type );
Please login to merge, or discard this patch.
sync/class.jetpack-sync-sender.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
 		return (double) get_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, 0 );
53 53
 	}
54 54
 
55
+	/**
56
+	 * @param integer $time
57
+	 */
55 58
 	public function set_next_sync_time( $time, $queue_name ) {
56 59
 		return update_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, $time, true );
57 60
 	}
@@ -64,6 +67,9 @@  discard block
 block discarded – undo
64 67
 		return $this->do_sync_and_set_delays( $this->sync_queue );
65 68
 	}
66 69
 
70
+	/**
71
+	 * @param Jetpack_Sync_Queue $queue
72
+	 */
67 73
 	public function do_sync_and_set_delays( $queue ) {
68 74
 		// don't sync if importing
69 75
 		if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) {
@@ -293,6 +299,10 @@  discard block
 block discarded – undo
293 299
 	}
294 300
 
295 301
 	// in seconds
302
+
303
+	/**
304
+	 * @param double $seconds
305
+	 */
296 306
 	function set_max_dequeue_time( $seconds ) {
297 307
 		$this->max_dequeue_time = $seconds;
298 308
 	}
Please login to merge, or discard this patch.