Completed
Push — full-sync-cache-delete ( f973ff...81aa30 )
by
unknown
221:40 queued 215:02
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.
class.jetpack-post-images.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -162,6 +162,7 @@  discard block
 block discarded – undo
162 162
 	/**
163 163
 	 * Get attachment images for a specified post and return them. Also make sure
164 164
 	 * their dimensions are at or above a required minimum.
165
+	 * @param integer $post_id
165 166
 	 */
166 167
 	static function from_attachment( $post_id, $width = 200, $height = 200 ) {
167 168
 		$images = array();
@@ -224,7 +225,7 @@  discard block
 block discarded – undo
224 225
 	 * Check if a Featured Image is set for this post, and return it in a similar
225 226
 	 * format to the other images?_from_*() methods.
226 227
 	 * @param  int $post_id The post ID to check
227
-	 * @return Array containing details of the Featured Image, or empty array if none.
228
+	 * @return integer|null containing details of the Featured Image, or empty array if none.
228 229
 	 */
229 230
 	static function from_thumbnail( $post_id, $width = 200, $height = 200 ) {
230 231
 		$images = array();
@@ -668,7 +669,6 @@  discard block
 block discarded – undo
668 669
 	 * resized and cropped image.
669 670
 	 *
670 671
 	 * @param  string $src
671
-	 * @param  int    $dimension
672 672
 	 * @return string            Transformed image URL
673 673
 	 */
674 674
 	static function fit_image_url( $src, $width, $height ) {
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
 	 *
716 716
 	 * @param mixed $html_or_id The HTML string to parse for images, or a post id.
717 717
 	 *
718
-	 * @return array $html_info {
718
+	 * @return integer $html_info {
719 719
 	 * @type string $html     Post content.
720 720
 	 * @type string $post_url Post URL.
721 721
 	 * }
Please login to merge, or discard this patch.
modules/publicize/publicize-jetpack.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -682,6 +682,9 @@
 block discarded – undo
682 682
 		$this->options_save_other( 'linkedin' );
683 683
 	}
684 684
 
685
+	/**
686
+	 * @param string $service_name
687
+	 */
685 688
 	function options_save_other( $service_name ) {
686 689
 		// Nonce check
687 690
 		check_admin_referer( 'save_' . $service_name . '_token_' . $_REQUEST['connection'] );
Please login to merge, or discard this patch.
json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -244,6 +244,9 @@
 block discarded – undo
244 244
 		}
245 245
 	}
246 246
 
247
+	/**
248
+	 * @param string $capability
249
+	 */
247 250
 	protected function current_user_can( $capability, $plugin = null ) {
248 251
 		if ( $plugin ) {
249 252
 			return current_user_can( $capability, $plugin );
Please login to merge, or discard this patch.
modules/plugin-search.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -543,6 +543,7 @@
 block discarded – undo
543 543
  * @internal
544 544
  *
545 545
  * @param bool &$error Did the remote request result in an error?
546
+ * @param boolean $error
546 547
  * @return bool True if PSH is active.
547 548
  */
548 549
 function jetpack_get_remote_is_psh_active( &$error ) {
Please login to merge, or discard this patch.
_inc/lib/class.media-summary.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -271,6 +271,9 @@  discard block
 block discarded – undo
271 271
 		}
272 272
 	}
273 273
 
274
+	/**
275
+	 * @param string $type
276
+	 */
274 277
 	static function get_video_poster( $type, $id ) {
275 278
 		if ( 'videopress' == $type ) {
276 279
 			if ( function_exists( 'video_get_highest_resolution_image_url' ) ) {
@@ -356,6 +359,9 @@  discard block
 block discarded – undo
356 359
 		return str_word_count( self::clean_text( $post_content ) );
357 360
 	}
358 361
 
362
+	/**
363
+	 * @param string $excerpt_content
364
+	 */
359 365
 	static function get_word_remaining_count( $post_content, $excerpt_content ) {
360 366
 		/**
361 367
 		 * es_api_word_count is useful to count words in all languages.
Please login to merge, or discard this patch.
sync/class.jetpack-sync-module.php 1 patch
Doc Comments   +16 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
 	}
@@ -58,6 +61,10 @@  discard block
 block discarded – undo
58 61
 		return false;
59 62
 	}
60 63
 
64
+	/**
65
+	 * @param string $action_name
66
+	 * @param string $id_field
67
+	 */
61 68
 	protected function enqueue_all_ids_as_action( $action_name, $table_name, $id_field, $where_sql, $max_items_to_enqueue, $state ) {
62 69
 		global $wpdb;
63 70
 
@@ -97,6 +104,9 @@  discard block
 block discarded – undo
97 104
 		return array( $chunk_count, true );
98 105
 	}
99 106
 
107
+	/**
108
+	 * @param string $meta_type
109
+	 */
100 110
 	protected function get_metadata( $ids, $meta_type, $meta_key_whitelist ) {
101 111
 		global $wpdb;
102 112
 		$table = _get_meta_table( $meta_type );
@@ -117,12 +127,18 @@  discard block
 block discarded – undo
117 127
 		);
118 128
 	}
119 129
 
130
+	/**
131
+	 * @param string $meta_type
132
+	 */
120 133
 	public function init_listeners_for_meta_type( $meta_type, $callable ) {
121 134
 		add_action( "added_{$meta_type}_meta", $callable, 10, 4 );
122 135
 		add_action( "updated_{$meta_type}_meta", $callable, 10, 4 );
123 136
 		add_action( "deleted_{$meta_type}_meta", $callable, 10, 4 );
124 137
 	}
125 138
 
139
+	/**
140
+	 * @param string $meta_type
141
+	 */
126 142
 	public function init_meta_whitelist_handler( $meta_type, $whitelist_handler ) {
127 143
 		add_filter( "jetpack_sync_before_enqueue_added_{$meta_type}_meta", $whitelist_handler );
128 144
 		add_filter( "jetpack_sync_before_enqueue_updated_{$meta_type}_meta", $whitelist_handler );
Please login to merge, or discard this patch.