Completed
Push — fix/4104-prevent-stats-option-... ( 63a3cb )
by
unknown
06:47
created
sync/class.jetpack-sync-wp-replicastore.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -338,6 +338,10 @@
 block discarded – undo
338 338
 	}
339 339
 
340 340
 	// functions
341
+
342
+	/**
343
+	 * @param string $name
344
+	 */
341 345
 	public function get_callable( $name ) {
342 346
 		$value = get_option( 'jetpack_' . $name );
343 347
 
Please login to merge, or discard this patch.
modules/sso.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	 * Validate the require  two step checkbox in Settings > General
263 263
 	 *
264 264
 	 * @since 2.7
265
-	 * @return boolean
265
+	 * @return integer
266 266
 	 **/
267 267
 	public function validate_jetpack_sso_require_two_step( $input ) {
268 268
 		return ( ! empty( $input ) ) ? 1 : 0;
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 	 * Validate the match by email check in Settings > General
288 288
 	 *
289 289
 	 * @since 2.9
290
-	 * @return boolean
290
+	 * @return integer
291 291
 	 **/
292 292
 	public function validate_jetpack_sso_match_by_email( $input ) {
293 293
 		return ( ! empty( $input ) ) ? 1 : 0;
Please login to merge, or discard this patch.
modules/shortcodes/recipe.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -253,6 +253,8 @@
 block discarded – undo
253 253
 	 * And we'll magically convert it to a list. This has the added benefit
254 254
 	 * of including itemprops for the recipe schema.
255 255
 	 *
256
+	 * @param string $content
257
+	 * @param string $type
256 258
 	 * @return string content formatted as a list item
257 259
 	 */
258 260
 	static function output_list_content( $content, $type ) {
Please login to merge, or discard this patch.
modules/shortcodes.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,9 +102,9 @@
 block discarded – undo
102 102
  * Parameters are the same as preg_replace, with an added optional search param for improved performance
103 103
  *
104 104
  * @param String $pattern
105
- * @param String $replacement
106 105
  * @param String $content
107 106
  * @param String $search
107
+ * @param string $callback
108 108
  * @return String $content
109 109
  */
110 110
 function jetpack_preg_replace_callback_outside_tags( $pattern, $callback, $content, $search = null ) {
Please login to merge, or discard this patch.
sync/class.jetpack-sync-full.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -170,6 +170,12 @@  discard block
 block discarded – undo
170 170
 		$this->set_status( 'posts', 100 );
171 171
 	}
172 172
 
173
+	/**
174
+	 * @param string $action_name
175
+	 * @param string $id_field
176
+	 * @param string|null $where_sql
177
+	 * @param string $status_name
178
+	 */
173 179
 	private function enqueue_all_ids_as_action( $action_name, $table_name, $id_field, $where_sql, $status_name ) {
174 180
 		global $wpdb;
175 181
 
@@ -301,6 +307,9 @@  discard block
 block discarded – undo
301 307
 		return $args;
302 308
 	}
303 309
 
310
+	/**
311
+	 * @param string $meta_type
312
+	 */
304 313
 	private function get_metadata( $ids, $meta_type ) {
305 314
 		global $wpdb;
306 315
 		$table = _get_meta_table( $meta_type );
Please login to merge, or discard this patch.
_inc/lib/icalendar-reader.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -699,8 +699,7 @@  discard block
 block discarded – undo
699 699
 	 * Render the events
700 700
 	 *
701 701
 	 * @param string $url (default: '')
702
-	 * @param string $context (default: 'widget') or 'shortcode'
703
-	 * @return mixed bool|string false on failure, rendered HTML string on success.
702
+	 * @return false|string bool|string false on failure, rendered HTML string on success.
704 703
 	 */
705 704
 	public function render( $url = '', $args = array() ) {
706 705
 
@@ -857,8 +856,7 @@  discard block
 block discarded – undo
857 856
  * Wrapper function for iCalendarReader->render()
858 857
  *
859 858
  * @param string $url (default: '')
860
- * @param string $context (default: 'widget') or 'shortcode'
861
- * @return mixed bool|string false on failure, rendered HTML string on success.
859
+ * @return false|string bool|string false on failure, rendered HTML string on success.
862 860
  */
863 861
 function icalendar_render_events( $url = '', $args = array() ) {
864 862
 	$ical = new iCalendarReader();
Please login to merge, or discard this patch.
_inc/lib/tracks/client.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,6 @@
 block discarded – undo
107 107
 /**
108 108
  * Record an event in Tracks - this is the preferred way to record events from PHP.
109 109
  *
110
- * @param mixed $identity username, user_id, or WP_user object
111 110
  * @param string $event_name The name of the event
112 111
  * @param array $properties Custom properties to send with the event
113 112
  * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred
Please login to merge, or discard this patch.
json-endpoints/class.wpcom-json-api-site-user-endpoint.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -64,6 +64,7 @@
 block discarded – undo
64 64
 	/**
65 65
 	 * Updates user data
66 66
 	 *
67
+	 * @param integer $user_id
67 68
 	 * @return (array)
68 69
 	 */
69 70
 	public function update_user( $user_id, $blog_id ) {
Please login to merge, or discard this patch.
modules/custom-post-types/portfolios.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
 	 * Our [portfolio] shortcode.
489 489
 	 * Prints Portfolio data styled to look good on *any* theme.
490 490
 	 *
491
-	 * @return portfolio_shortcode_html
491
+	 * @return string
492 492
 	 */
493 493
 	static function portfolio_shortcode( $atts ) {
494 494
 		// Default attributes
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
 	 * The Portfolio shortcode loop.
622 622
 	 *
623 623
 	 * @todo add theme color styles
624
-	 * @return html
624
+	 * @return string
625 625
 	 */
626 626
 	static function portfolio_shortcode_html( $atts ) {
627 627
 
@@ -713,6 +713,7 @@  discard block
 block discarded – undo
713 713
 	/**
714 714
 	 * Individual project class
715 715
 	 *
716
+	 * @param integer $portfolio_index_number
716 717
 	 * @return string
717 718
 	 */
718 719
 	static function get_project_class( $portfolio_index_number, $columns ) {
@@ -820,7 +821,7 @@  discard block
 block discarded – undo
820 821
 	/**
821 822
 	 * Displays the author of the current portfolio project.
822 823
 	 *
823
-	 * @return html
824
+	 * @return string
824 825
 	 */
825 826
 	static function get_project_author() {
826 827
 		$html = '<div class="project-author">';
@@ -837,7 +838,7 @@  discard block
 block discarded – undo
837 838
 	/**
838 839
 	 * Display the featured image if it's available
839 840
 	 *
840
-	 * @return html
841
+	 * @return string|null
841 842
 	 */
842 843
 	static function get_portfolio_thumbnail_link( $post_id ) {
843 844
 		if ( has_post_thumbnail( $post_id ) ) {
Please login to merge, or discard this patch.