Completed
Push — fix/phpcbf-sync ( caf2ff )
by Jeremy
07:57
created
sync/class.jetpack-sync-actions.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -321,6 +321,9 @@  discard block
 block discarded – undo
321 321
 		return $sync_modules;
322 322
 	}
323 323
 
324
+	/**
325
+	 * @return string
326
+	 */
324 327
 	static function sanitize_filtered_sync_cron_schedule( $schedule ) {
325 328
 		$schedule  = sanitize_key( $schedule );
326 329
 		$schedules = wp_get_schedules();
@@ -358,6 +361,9 @@  discard block
 block discarded – undo
358 361
 		);
359 362
 	}
360 363
 
364
+	/**
365
+	 * @param string $hook
366
+	 */
361 367
 	static function maybe_schedule_sync_cron( $schedule, $hook ) {
362 368
 		if ( ! $hook ) {
363 369
 			return;
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
@@ -76,6 +76,9 @@  discard block
 block discarded – undo
76 76
 		return (float) get_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, 0 );
77 77
 	}
78 78
 
79
+	/**
80
+	 * @param integer $time
81
+	 */
79 82
 	public function set_next_sync_time( $time, $queue_name ) {
80 83
 		return update_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, $time, true );
81 84
 	}
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
 		return $this->do_sync_and_set_delays( $this->sync_queue );
107 110
 	}
108 111
 
112
+	/**
113
+	 * @param Jetpack_Sync_Queue $queue
114
+	 */
109 115
 	public function do_sync_and_set_delays( $queue ) {
110 116
 		// don't sync if importing
111 117
 		if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) {
@@ -354,6 +360,10 @@  discard block
 block discarded – undo
354 360
 	}
355 361
 
356 362
 	// in seconds
363
+
364
+	/**
365
+	 * @param double $seconds
366
+	 */
357 367
 	function set_max_dequeue_time( $seconds ) {
358 368
 		$this->max_dequeue_time = $seconds;
359 369
 	}
Please login to merge, or discard this patch.