Completed
Push — changelog/76 ( 041739...62986d )
by Jeremy
24:19 queued 16:33
created
packages/sync/src/modules/WooCommerce.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	 *
151 151
 	 * @access public
152 152
 	 *
153
-	 * @return array Full sync actions of this module.
153
+	 * @return string[] Full sync actions of this module.
154 154
 	 */
155 155
 	public function get_full_sync_actions() {
156 156
 		return array( 'jetpack_full_sync_woocommerce_order_items' );
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 	 * @todo Refactor the SQL query to use $wpdb->prepare().
247 247
 	 *
248 248
 	 * @param array $config Full sync configuration for this sync module.
249
-	 * @return array Number of items yet to be enqueued.
249
+	 * @return integer Number of items yet to be enqueued.
250 250
 	 */
251 251
 	public function estimate_full_sync_actions( $config ) {
252 252
 		global $wpdb;
Please login to merge, or discard this patch.
packages/sync/src/Actions.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -134,6 +134,9 @@  discard block
 block discarded – undo
134 134
 		return ( Settings::get_setting( 'sync_via_cron' ) );
135 135
 	}
136 136
 
137
+	/**
138
+	 * @param boolean $should_publicize
139
+	 */
137 140
 	static function prevent_publicize_blacklisted_posts( $should_publicize, $post ) {
138 141
 		if ( in_array( $post->post_type, Settings::get_setting( 'post_types_blacklist' ) ) ) {
139 142
 			return false;
@@ -146,6 +149,13 @@  discard block
 block discarded – undo
146 149
 		Settings::set_importing( true );
147 150
 	}
148 151
 
152
+	/**
153
+	 * @param string $codec_name
154
+	 * @param integer $sent_timestamp
155
+	 * @param integer $queue_id
156
+	 * @param integer $checkout_duration
157
+	 * @param integer $preprocess_duration
158
+	 */
149 159
 	static function send_data( $data, $codec_name, $sent_timestamp, $queue_id, $checkout_duration, $preprocess_duration ) {
150 160
 		\Jetpack::load_xml_rpc_client();
151 161
 
@@ -350,6 +360,9 @@  discard block
 block discarded – undo
350 360
 		return $sync_modules;
351 361
 	}
352 362
 
363
+	/**
364
+	 * @return string
365
+	 */
353 366
 	static function sanitize_filtered_sync_cron_schedule( $schedule ) {
354 367
 		$schedule  = sanitize_key( $schedule );
355 368
 		$schedules = wp_get_schedules();
@@ -387,6 +400,9 @@  discard block
 block discarded – undo
387 400
 		);
388 401
 	}
389 402
 
403
+	/**
404
+	 * @param string $hook
405
+	 */
390 406
 	static function maybe_schedule_sync_cron( $schedule, $hook ) {
391 407
 		if ( ! $hook ) {
392 408
 			return;
@@ -436,6 +452,10 @@  discard block
 block discarded – undo
436 452
 		self::maybe_schedule_sync_cron( $full_sync_cron_schedule, 'jetpack_sync_full_cron' );
437 453
 	}
438 454
 
455
+	/**
456
+	 * @param string $new_version
457
+	 * @param string $old_version
458
+	 */
439 459
 	static function cleanup_on_upgrade( $new_version = null, $old_version = null ) {
440 460
 		if ( wp_next_scheduled( 'jetpack_sync_send_db_checksum' ) ) {
441 461
 			wp_clear_scheduled_hook( 'jetpack_sync_send_db_checksum' );
Please login to merge, or discard this patch.
packages/sync/src/Defaults.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -734,6 +734,9 @@
 block discarded – undo
734 734
 		return floor( $max_exec_time / 3 );
735 735
 	}
736 736
 
737
+	/**
738
+	 * @param string $setting
739
+	 */
737 740
 	static function get_default_setting( $setting ) {
738 741
 		$default_name = "default_$setting"; // e.g. default_dequeue_max_bytes
739 742
 		return self::$$default_name;
Please login to merge, or discard this patch.
packages/sync/src/Server.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 	 *
65 65
 	 * @access public
66 66
 	 *
67
-	 * @param Automattic\Jetpack\Sync\Codec_Interface $codec Codec instance.
67
+	 * @param Codec_Interface $codec Codec instance.
68 68
 	 */
69 69
 	public function set_codec( Codec_Interface $codec ) {
70 70
 		$this->codec = $codec;
Please login to merge, or discard this patch.