Completed
Push — add/sync-rest ( 691bad...bd68f8 )
by
unknown
49:50 queued 40:43
created
class.jetpack-sync.php 1 patch
Doc Comments   +12 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,6 @@  discard block
 block discarded – undo
70 70
 
71 71
 	/**
72 72
 	 * @param string $file __FILE__
73
-	 * @param string $option, Option name to sync
74 73
 	 * @param string $option ...
75 74
 	 */
76 75
 	static function sync_options( $file, $option /*, $option, ... */ ) {
@@ -81,8 +80,6 @@  discard block
 block discarded – undo
81 80
 	}
82 81
 	/**
83 82
 	 * @param string $file __FILE__
84
-	 * @param string $option, Option name to sync
85
-	 * @param string $option ...
86 83
 	 */
87 84
 	static function sync_constant( $file, $constant ) {
88 85
 		if ( is_network_admin() ) return;
@@ -301,6 +298,9 @@  discard block
 block discarded – undo
301 298
 		return $this->register( 'post', $id, $settings );
302 299
 	}
303 300
 
301
+	/**
302
+	 * @param string $to_sync
303
+	 */
304 304
 	static function trigger_sync( $to_sync ) {
305 305
 		$jetpack = Jetpack::init();
306 306
 		if ( ! $jetpack->sync->sync ) {
@@ -387,6 +387,9 @@  discard block
 block discarded – undo
387 387
 		$this->transition_post_status_action( 'delete', $post->post_status, $post );
388 388
 	}
389 389
 
390
+	/**
391
+	 * @param string $new_status
392
+	 */
390 393
 	function transition_post_status_action( $new_status, $old_status, $post ) {
391 394
 		$sync = $this->get_post_sync_operation( $new_status, $old_status, $post, $this->sync_conditions['posts'] );
392 395
 		if ( !$sync ) {
@@ -771,6 +774,11 @@  discard block
 block discarded – undo
771 774
 /* Options Sync */
772 775
 
773 776
 	/* Ah... so much simpler than Posts and Comments :) */
777
+
778
+	/**
779
+	 * @param string $file
780
+	 * @param string $option
781
+	 */
774 782
 	function options( $file, $option /*, $option, ... */ ) {
775 783
 		$options = func_get_args();
776 784
 		$file = array_shift( $options );
@@ -878,6 +886,7 @@  discard block
 block discarded – undo
878 886
 
879 887
 	/**
880 888
 	 * Returns default values of Constants
889
+	 * @param string $constant
881 890
 	 */
882 891
 	function default_constant( $constant ) {
883 892
 		switch( $constant ) {
Please login to merge, or discard this patch.