Completed
Push — add/travis-improvements ( a9c112...a1f91c )
by
unknown
380:00 queued 372:23
created
modules/sso/class.jetpack-sso-helpers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1283,7 +1283,7 @@
 block discarded – undo
1283 1283
 	 * Returns an array of stock and custom taxonomy query vars
1284 1284
 	 *
1285 1285
 	 * @global $wp_taxonomies
1286
-	 * @return array
1286
+	 * @return string[]
1287 1287
 	 */
1288 1288
 	function get_taxonomy_vars() {
1289 1289
 		global $wp_taxonomies;
Please login to merge, or discard this patch.
_inc/lib/class.core-rest-api-endpoints.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,6 +248,11 @@  discard block
 block discarded – undo
248 248
 		) );
249 249
 	}
250 250
 
251
+	/**
252
+	 * @param string $path
253
+	 * @param string $classname
254
+	 * @param Jetpack_IXR_Client $constructor_arguments
255
+	 */
251 256
 	public static function route( $path, $classname, $method,
252 257
 		$constructor_arguments = NULL,
253 258
 		$endpoint_arguments = NULL
@@ -1744,7 +1749,7 @@  discard block
 block discarded – undo
1744 1749
 	 *
1745 1750
 	 * @param string $route Regular expression for the endpoint with the module slug to return.
1746 1751
 	 *
1747
-	 * @return array
1752
+	 * @return string
1748 1753
 	 */
1749 1754
 	public static function get_module_requested( $route ) {
1750 1755
 
@@ -1769,7 +1774,7 @@  discard block
 block discarded – undo
1769 1774
 	 * @param string      $modules Can be a single module or a list of modules.
1770 1775
 	 * @param null|string $slug    Slug of the module in the first parameter.
1771 1776
 	 *
1772
-	 * @return array
1777
+	 * @return string
1773 1778
 	 */
1774 1779
 	public static function prepare_modules_for_response( $modules = '', $slug = null ) {
1775 1780
 		if ( get_option( 'permalink_structure' ) ) {
Please login to merge, or discard this patch.
json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -107,6 +107,9 @@
 block discarded – undo
107 107
 		$this->enqueue_action( current_filter(), func_get_args(), $this->sync_queue );
108 108
 	}
109 109
 
110
+	/**
111
+	 * @param Jetpack_Sync_Queue $queue
112
+	 */
110 113
 	function enqueue_action( $current_filter, $args, $queue ) {
111 114
 
112 115
 		/**
Please login to merge, or discard this patch.
sync/class.jetpack-sync-queue.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -250,6 +250,9 @@  discard block
 block discarded – undo
250 250
 		return true;
251 251
 	}
252 252
 
253
+	/**
254
+	 * @param Jetpack_Sync_Queue_Buffer $buffer
255
+	 */
253 256
 	function close( $buffer, $ids_to_remove = null ) {
254 257
 		$is_valid = $this->validate_checkout( $buffer );
255 258
 
@@ -328,6 +331,9 @@  discard block
 block discarded – undo
328 331
 		return get_transient( $this->get_checkout_transient_name() );
329 332
 	}
330 333
 
334
+	/**
335
+	 * @param string $checkout_id
336
+	 */
331 337
 	private function set_checkout_id( $checkout_id ) {
332 338
 		return set_transient( $this->get_checkout_transient_name(), $checkout_id, 5 * 60 ); // 5 minute timeout
333 339
 	}
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.
sync/class.jetpack-sync-actions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -321,6 +321,9 @@
 block discarded – undo
321 321
 		return self::DEFAULT_SYNC_CRON_INTERVAL;
322 322
 	}
323 323
 
324
+	/**
325
+	 * @param string $hook
326
+	 */
324 327
 	static function maybe_schedule_sync_cron( $schedule, $hook ) {
325 328
 		if ( ! $hook ) {
326 329
 			return;
Please login to merge, or discard this patch.
sync/class.jetpack-sync-settings.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -107,6 +107,9 @@  discard block
 block discarded – undo
107 107
 		self::set_is_sending( null );
108 108
 	}
109 109
 
110
+	/**
111
+	 * @param boolean|null $is_importing
112
+	 */
110 113
 	static function set_importing( $is_importing ) {
111 114
 		// set to NULL to revert to WP_IMPORTING, the standard behaviour
112 115
 		self::$is_importing = $is_importing;
@@ -137,6 +140,9 @@  discard block
 block discarded – undo
137 140
 		return (bool) self::$is_syncing;
138 141
 	}
139 142
 
143
+	/**
144
+	 * @param boolean|null $is_syncing
145
+	 */
140 146
 	static function set_is_syncing( $is_syncing ) {
141 147
 		self::$is_syncing = $is_syncing;
142 148
 	}
@@ -145,6 +151,9 @@  discard block
 block discarded – undo
145 151
 		return (bool) self::$is_sending;
146 152
 	}
147 153
 
154
+	/**
155
+	 * @param boolean|null $is_sending
156
+	 */
148 157
 	static function set_is_sending( $is_sending ) {
149 158
 		self::$is_sending = $is_sending;
150 159
 	}
Please login to merge, or discard this patch.
sync/class.jetpack-sync-wp-replicastore.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -420,6 +420,10 @@  discard block
 block discarded – undo
420 420
 	}
421 421
 
422 422
 	// functions
423
+
424
+	/**
425
+	 * @param string $name
426
+	 */
423 427
 	public function get_callable( $name ) {
424 428
 		$value = get_option( 'jetpack_' . $name );
425 429
 
@@ -688,6 +692,9 @@  discard block
 block discarded – undo
688 692
 		return $histogram;
689 693
 	}
690 694
 
695
+	/**
696
+	 * @param string|null $id_column
697
+	 */
691 698
 	private function table_checksum( $table, $columns, $id_column, $where_sql = '1=1', $min_id = null, $max_id = null, $strip_non_ascii = true ) {
692 699
 		global $wpdb;
693 700
 
@@ -725,6 +732,9 @@  discard block
 block discarded – undo
725 732
 
726 733
 	}
727 734
 
735
+	/**
736
+	 * @param string $where_sql
737
+	 */
728 738
 	private function meta_count( $table, $where_sql, $min_id, $max_id ) {
729 739
 		global $wpdb;
730 740
 
Please login to merge, or discard this patch.
sync/class.jetpack-sync-module-full-sync.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -279,6 +279,9 @@  discard block
 block discarded – undo
279 279
 		$listener->get_full_sync_queue()->reset();
280 280
 	}
281 281
 
282
+	/**
283
+	 * @param integer $default
284
+	 */
282 285
 	private function get_status_option( $name, $default = null ) {
283 286
 		$prefix = self::STATUS_OPTION_PREFIX;
284 287
 
@@ -313,6 +316,9 @@  discard block
 block discarded – undo
313 316
 		return $this->read_option( 'jetpack_sync_full_config' );
314 317
 	}
315 318
 
319
+	/**
320
+	 * @param string $name
321
+	 */
316 322
 	private function write_option( $name, $value ) {
317 323
 		// we write our own option updating code to bypass filters/caching/etc on set_option/get_option
318 324
 		global $wpdb;
@@ -340,6 +346,9 @@  discard block
 block discarded – undo
340 346
 		return $updated_num;
341 347
 	}
342 348
 
349
+	/**
350
+	 * @param string $name
351
+	 */
343 352
 	private function read_option( $name, $default = null ) {
344 353
 		global $wpdb;
345 354
 		$value = $wpdb->get_var( 
Please login to merge, or discard this patch.