Completed
Push — add/jetpack-data-methods ( 2c93cb...c43733 )
by
unknown
08:41 queued 02:02
created
modules/shortcodes/class.filter-embedded-html-objects.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
 	/**
222 222
 	 * Filter and replace HTML element.
223 223
 	 *
224
-	 * @param array $matches Array of matches.
224
+	 * @param string[] $matches Array of matches.
225 225
 	 */
226 226
 	private static function dispatch( $matches ) {
227 227
 		$html  = preg_replace( '%&#0*58;//%', '://', $matches[0] );
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
 
@@ -111,6 +118,9 @@  discard block
 block discarded – undo
111 118
 		return $chunks_with_ends;
112 119
 	}
113 120
 
121
+	/**
122
+	 * @param string $meta_type
123
+	 */
114 124
 	protected function get_metadata( $ids, $meta_type, $meta_key_whitelist ) {
115 125
 		global $wpdb;
116 126
 		$table = _get_meta_table( $meta_type );
@@ -131,12 +141,18 @@  discard block
 block discarded – undo
131 141
 		);
132 142
 	}
133 143
 
144
+	/**
145
+	 * @param string $meta_type
146
+	 */
134 147
 	public function init_listeners_for_meta_type( $meta_type, $callable ) {
135 148
 		add_action( "added_{$meta_type}_meta", $callable, 10, 4 );
136 149
 		add_action( "updated_{$meta_type}_meta", $callable, 10, 4 );
137 150
 		add_action( "deleted_{$meta_type}_meta", $callable, 10, 4 );
138 151
 	}
139 152
 
153
+	/**
154
+	 * @param string $meta_type
155
+	 */
140 156
 	public function init_meta_whitelist_handler( $meta_type, $whitelist_handler ) {
141 157
 		add_filter( "jetpack_sync_before_enqueue_added_{$meta_type}_meta", $whitelist_handler );
142 158
 		add_filter( "jetpack_sync_before_enqueue_updated_{$meta_type}_meta", $whitelist_handler );
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 (int) count( self::split_content_in_words( 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
 		$content_word_count = count( self::split_content_in_words( self::clean_text( $post_content ) ) );
361 367
 		$excerpt_word_count = count( self::split_content_in_words( self::clean_text( $excerpt_content ) ) ); 
Please login to merge, or discard this patch.
sync/class.jetpack-sync-module-full-sync.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -185,6 +185,9 @@  discard block
 block discarded – undo
185 185
 		do_action( 'jetpack_full_sync_end', '', $range );
186 186
 	}
187 187
 
188
+	/**
189
+	 * @param string $type
190
+	 */
188 191
 	function get_range( $type ) {
189 192
 		global $wpdb;
190 193
 		if ( ! in_array( $type, array( 'comments', 'posts' ) ) ) {
@@ -323,6 +326,9 @@  discard block
 block discarded – undo
323 326
 		$listener->get_full_sync_queue()->reset();
324 327
 	}
325 328
 
329
+	/**
330
+	 * @param integer $default
331
+	 */
326 332
 	private function get_status_option( $name, $default = null ) {
327 333
 		$value = Jetpack_Options::get_raw_option( self::STATUS_OPTION_PREFIX . "_$name", $default );
328 334
 
Please login to merge, or discard this patch.
_inc/lib/debugger/class-jetpack-cxn-test-base.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
 	 * @param string $type  Test type, async or direct. Optional, direct all tests.
200 200
 	 * @param string $group Testing group to check status of. Optional, default all tests.
201 201
 	 *
202
-	 * @return true|array True if all tests pass. Array of failed tests.
202
+	 * @return boolean True if all tests pass. Array of failed tests.
203 203
 	 */
204 204
 	public function pass( $type = 'all', $group = 'all' ) {
205 205
 		$results = $this->raw_results( $type, $group );
Please login to merge, or discard this patch.
class.jetpack-gutenberg.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -416,7 +416,7 @@
 block discarded – undo
416 416
 	 * Only enqueue block assets when needed.
417 417
 	 *
418 418
 	 * @param string $type Slug of the block.
419
-	 * @param array  $script_dependencies Script dependencies. Will be merged with automatically
419
+	 * @param string[]  $script_dependencies Script dependencies. Will be merged with automatically
420 420
 	 *                                    detected script dependencies from the webpack build.
421 421
 	 *
422 422
 	 * @return void
Please login to merge, or discard this patch.
modules/carousel/jetpack-carousel.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -129,6 +129,9 @@  discard block
 block discarded – undo
129 129
 		return apply_filters( 'jp_carousel_load_for_images_linked_to_file', false );
130 130
 	}
131 131
 
132
+	/**
133
+	 * @param string $version
134
+	 */
132 135
 	function asset_version( $version ) {
133 136
 		/**
134 137
 		 * Filter the version string used when enqueuing Carousel assets.
@@ -511,6 +514,9 @@  discard block
 block discarded – undo
511 514
 		return $attr;
512 515
 	}
513 516
 
517
+	/**
518
+	 * @param string $html
519
+	 */
514 520
 	function add_data_to_container( $html ) {
515 521
 		global $post;
516 522
 		if (
@@ -757,6 +763,9 @@  discard block
 block discarded – undo
757 763
 		return ( 1 == $value ) ? 1 : 0;
758 764
 	}
759 765
 
766
+	/**
767
+	 * @param string $name
768
+	 */
760 769
 	function settings_checkbox( $name, $label_text, $extra_text = '', $default_to_checked = true ) {
761 770
 		if ( empty( $name ) ) {
762 771
 			return;
@@ -772,6 +781,9 @@  discard block
 block discarded – undo
772 781
 		echo '</fieldset>';
773 782
 	}
774 783
 
784
+	/**
785
+	 * @param string $name
786
+	 */
775 787
 	function settings_select( $name, $values, $extra_text = '' ) {
776 788
 		if ( empty( $name ) || ! is_array( $values ) || empty( $values ) ) {
777 789
 			return;
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
@@ -447,6 +447,10 @@  discard block
 block discarded – undo
447 447
 	}
448 448
 
449 449
 	// functions
450
+
451
+	/**
452
+	 * @param string $name
453
+	 */
450 454
 	public function get_callable( $name ) {
451 455
 		$value = get_option( 'jetpack_' . $name );
452 456
 
@@ -738,6 +742,9 @@  discard block
 block discarded – undo
738 742
 		return $histogram;
739 743
 	}
740 744
 
745
+	/**
746
+	 * @param string|null $id_column
747
+	 */
741 748
 	private function table_checksum( $table, $columns, $id_column, $where_sql = '1=1', $min_id = null, $max_id = null, $strip_non_ascii = true, $salt = '' ) {
742 749
 		global $wpdb;
743 750
 
@@ -791,6 +798,9 @@  discard block
 block discarded – undo
791 798
 		return 'sum';
792 799
 	}
793 800
 
801
+	/**
802
+	 * @param string $where_sql
803
+	 */
794 804
 	private function meta_count( $table, $where_sql, $min_id, $max_id ) {
795 805
 		global $wpdb;
796 806
 
Please login to merge, or discard this patch.
modules/shortcodes/soundcloud.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 /**
143 143
  * Plugin options getter
144 144
  *
145
- * @param  string|array $option  Option name.
145
+ * @param  string $option  Option name.
146 146
  * @param  mixed        $default Default value.
147 147
  *
148 148
  * @return mixed                   Option value
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
  *
159 159
  * @param string $url Soundcloud URL.
160 160
  *
161
- * @return boolean
161
+ * @return integer
162 162
  */
163 163
 function soundcloud_url_has_tracklist( $url ) {
164 164
 	return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url );
Please login to merge, or discard this patch.