Completed
Push — branch-7.0-built ( 52fc6f...638427 )
by Jeremy
06:33
created
modules/theme-tools/infinite-scroll.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,6 @@
 block discarded – undo
40 40
 /**
41 41
  * Prevent IS from being activated if theme doesn't support it
42 42
  *
43
- * @param bool $can_activate
44 43
  * @filter jetpack_can_activate_infinite-scroll
45 44
  * @return bool
46 45
  */
Please login to merge, or discard this patch.
modules/theme-tools/responsive-videos.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * Adds a wrapper to videos and enqueue script
31 31
  *
32
+ * @param string $html
32 33
  * @return string
33 34
  */
34 35
 function jetpack_responsive_videos_embed_html( $html ) {
Please login to merge, or discard this patch.
modules/shortcodes/crowdsignal.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
 		add_action( 'infinite_scroll_render', array( $this, 'crowdsignal_shortcode_infinite' ), 11 );
26 26
 	}
27 27
 
28
+	/**
29
+	 * @param string $survey_link
30
+	 */
28 31
 	private function get_async_code( array $settings, $survey_link ) {
29 32
 		$include = <<<CONTAINER
30 33
 ( function( d, c, j ) {
Please login to merge, or discard this patch.
modules/sitemaps/sitemap-buffer.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 	 *
155 155
 	 * @since 5.3.0
156 156
 	 *
157
-	 * @param array $array The item to be added.
157
+	 * @param string $array The item to be added.
158 158
 	 *
159 159
 	 * @return bool True if the append succeeded, False if not.
160 160
 	 */
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 	 * @param DOMElement  $parent (optional) an element to which new children should be added.
284 284
 	 * @param DOMDocument $root (optional) the parent document.
285 285
 	 *
286
-	 * @return string|DOMDocument The rendered XML string or an object if root element is specified.
286
+	 * @return null|DOMNode The rendered XML string or an object if root element is specified.
287 287
 	 */
288 288
 	protected function array_to_xml_string( $array, $parent = null, $root = null ) {
289 289
 		$return_string = false;
Please login to merge, or discard this patch.
_inc/lib/class.jetpack-keyring-service-helper.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -100,6 +100,10 @@  discard block
 block discarded – undo
100 100
 		), menu_page_url( 'sharing', false ) );
101 101
 	}
102 102
 
103
+	/**
104
+	 * @param string $service_name
105
+	 * @param string $for
106
+	 */
103 107
 	static function refresh_url( $service_name, $for ) {
104 108
 		return add_query_arg( array(
105 109
 			'action'   => 'request',
@@ -111,6 +115,10 @@  discard block
 block discarded – undo
111 115
 		), admin_url( 'options-general.php?page=sharing' ) );
112 116
 	}
113 117
 
118
+	/**
119
+	 * @param string $service_name
120
+	 * @param string $id
121
+	 */
114 122
 	static function disconnect_url( $service_name, $id ) {
115 123
 		return add_query_arg( array(
116 124
 			'action'   => 'delete',
Please login to merge, or discard this patch.
modules/protect/math-fallback.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 		/**
27 27
 		 * Verifies that a user answered the math problem correctly while logging in.
28 28
 		 *
29
-		 * @return bool Returns true if the math is correct
29
+		 * @return boolean|null Returns true if the math is correct
30 30
 		 * @throws Error if insuffient $_POST variables are present.
31 31
 		 * @throws Error message if the math is wrong
32 32
 		 */
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 		/**
110 110
 		 * Requires a user to solve a simple equation. Added to any WordPress login form.
111 111
 		 *
112
-		 * @return VOID outputs html
112
+		 * @return string|null outputs html
113 113
 		 */
114 114
 		static function math_form() {
115 115
 			// Check if jpp_math_pass cookie is set and it matches valid transient
Please login to merge, or discard this patch.
class.photon.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1095,7 +1095,7 @@
 block discarded – undo
1095 1095
 	 * after ourselves without breaking anyone else's filters.
1096 1096
 	 *
1097 1097
 	 * @internal
1098
-	 * @return true
1098
+	 * @return boolean
1099 1099
 	 */
1100 1100
 	public function _override_image_downsize_in_rest_edit_context() {
1101 1101
 		return true;
Please login to merge, or discard this patch.
modules/contact-form/grunion-contact-form.php 1 patch
Doc Comments   +44 added lines, -2 removed lines patch added patch discarded remove patch
@@ -283,6 +283,9 @@  discard block
 block discarded – undo
283 283
 		return Grunion_Contact_Form::parse( $atts, do_blocks( $content ) );
284 284
 	}
285 285
 
286
+	/**
287
+	 * @param string $type
288
+	 */
286 289
 	public static function block_attributes_to_shortcode_attributes( $atts, $type ) {
287 290
 		$atts['type'] = $type;
288 291
 		if ( isset( $atts['className'] ) ) {
@@ -1878,7 +1881,6 @@  discard block
 block discarded – undo
1878 1881
 	 *
1879 1882
 	 * @see ::style()
1880 1883
 	 * @internal
1881
-	 * @param bool $style
1882 1884
 	 */
1883 1885
 	static function _style_on() {
1884 1886
 		return self::style( true );
@@ -2023,6 +2025,7 @@  discard block
 block discarded – undo
2023 2025
 	 *
2024 2026
 	 * @param int                         $feedback_id
2025 2027
 	 * @param object Grunion_Contact_Form $form
2028
+	 * @param Grunion_Contact_Form $form
2026 2029
 	 *
2027 2030
 	 * @return string $message
2028 2031
 	 */
@@ -2135,7 +2138,7 @@  discard block
 block discarded – undo
2135 2138
 	 *
2136 2139
 	 * @param array       $attributes Key => Value pairs as parsed by shortcode_parse_atts()
2137 2140
 	 * @param string|null $content The shortcode's inner content: [contact-field]$content[/contact-field]
2138
-	 * @return HTML for the contact form field
2141
+	 * @return string for the contact form field
2139 2142
 	 */
2140 2143
 	static function parse_contact_field( $attributes, $content ) {
2141 2144
 		// Don't try to parse contact form fields if not inside a contact form
@@ -3158,6 +3161,9 @@  discard block
 block discarded – undo
3158 3161
 
3159 3162
 	}
3160 3163
 
3164
+	/**
3165
+	 * @param string $type
3166
+	 */
3161 3167
 	function render_input_field( $type, $id, $value, $class, $placeholder, $required ) {
3162 3168
 		return "<input 
3163 3169
 					type='". esc_attr( $type ) ."' 
@@ -3169,24 +3175,40 @@  discard block
 block discarded – undo
3169 3175
 				/>\n";
3170 3176
 	}
3171 3177
 
3178
+	/**
3179
+	 * @param string $class
3180
+	 * @param string $placeholder
3181
+	 */
3172 3182
 	function render_email_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3173 3183
 		$field = $this->render_label( 'email', $id, $label, $required, $required_field_text );
3174 3184
 		$field .= $this->render_input_field( 'email', $id, $value, $class, $placeholder, $required );
3175 3185
 		return $field;
3176 3186
 	}
3177 3187
 
3188
+	/**
3189
+	 * @param string $class
3190
+	 * @param string $placeholder
3191
+	 */
3178 3192
 	function render_telephone_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3179 3193
 		$field = $this->render_label( 'telephone', $id, $label, $required, $required_field_text );
3180 3194
 		$field .= $this->render_input_field( 'tel', $id, $value, $class, $placeholder, $required );
3181 3195
 		return $field;
3182 3196
 	}
3183 3197
 
3198
+	/**
3199
+	 * @param string $class
3200
+	 * @param string $placeholder
3201
+	 */
3184 3202
 	function render_url_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3185 3203
 		$field = $this->render_label( 'url', $id, $label, $required, $required_field_text );
3186 3204
 		$field .= $this->render_input_field( 'url', $id, $value, $class, $placeholder, $required );
3187 3205
 		return $field;
3188 3206
 	}
3189 3207
 
3208
+	/**
3209
+	 * @param string $class
3210
+	 * @param string $placeholder
3211
+	 */
3190 3212
 	function render_textarea_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3191 3213
 		$field = $this->render_label( 'textarea', 'contact-form-comment-' . $id, $label, $required, $required_field_text );
3192 3214
 		$field .= "<textarea
@@ -3201,6 +3223,9 @@  discard block
 block discarded – undo
3201 3223
 		return $field;
3202 3224
 	}
3203 3225
 
3226
+	/**
3227
+	 * @param string $class
3228
+	 */
3204 3229
 	function render_radio_field( $id, $label, $value, $class, $required, $required_field_text ) {
3205 3230
 		$field = $this->render_label( '', $id, $label, $required, $required_field_text );
3206 3231
 		foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) {
@@ -3222,6 +3247,9 @@  discard block
 block discarded – undo
3222 3247
 		return $field;
3223 3248
 	}
3224 3249
 
3250
+	/**
3251
+	 * @param string $class
3252
+	 */
3225 3253
 	function render_checkbox_field( $id, $label, $value, $class, $required, $required_field_text ) {
3226 3254
 		$field = "<label class='grunion-field-label checkbox" . ( $this->is_error() ? ' form-error' : '' ) . "'>";
3227 3255
 			$field .= "\t\t<input type='checkbox' name='" . esc_attr( $id ) . "' value='" . esc_attr__( 'Yes', 'jetpack' ) . "' " . $class . checked( (bool) $value, true, false ) . ' ' . ( $required ? "required aria-required='true'" : '' ) . "/> \n";
@@ -3231,6 +3259,9 @@  discard block
 block discarded – undo
3231 3259
 		return $field;
3232 3260
 	}
3233 3261
 
3262
+	/**
3263
+	 * @param string $class
3264
+	 */
3234 3265
 	function render_checkbox_multiple_field( $id, $label, $value, $class, $required, $required_field_text  ) {
3235 3266
 		$field = $this->render_label( '', $id, $label, $required, $required_field_text );
3236 3267
 		foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) {
@@ -3246,6 +3277,9 @@  discard block
 block discarded – undo
3246 3277
 		return $field;
3247 3278
 	}
3248 3279
 
3280
+	/**
3281
+	 * @param string $class
3282
+	 */
3249 3283
 	function render_select_field( $id, $label, $value, $class, $required, $required_field_text ) {
3250 3284
 		$field = $this->render_label( 'select', $id, $label, $required, $required_field_text );
3251 3285
 		$field  .= "\t<select name='" . esc_attr( $id ) . "' id='" . esc_attr( $id ) . "' " . $class . ( $required ? "required aria-required='true'" : '' ) . ">\n";
@@ -3263,6 +3297,10 @@  discard block
 block discarded – undo
3263 3297
 		return $field;
3264 3298
 	}
3265 3299
 
3300
+	/**
3301
+	 * @param string $class
3302
+	 * @param string $placeholder
3303
+	 */
3266 3304
 	function render_date_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3267 3305
 		$field = $this->render_label( 'date', $id, $label, $required, $required_field_text );
3268 3306
 		$field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required );
@@ -3282,6 +3320,10 @@  discard block
 block discarded – undo
3282 3320
 		return $field;
3283 3321
 	}
3284 3322
 
3323
+	/**
3324
+	 * @param string $class
3325
+	 * @param string $placeholder
3326
+	 */
3285 3327
 	function render_default_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder, $type ) {
3286 3328
 		$field = $this->render_label( $type, $id, $label, $required, $required_field_text );
3287 3329
 		$field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required );
Please login to merge, or discard this patch.
class.json-api.php 1 patch
Doc Comments   +18 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@  discard block
 block discarded – undo
33 33
 	public $extra_headers = array();
34 34
 
35 35
 	/**
36
+	 * @param string $method
37
+	 * @param string $url
38
+	 * @param string $post_body
36 39
 	 * @return WPCOM_JSON_API instance
37 40
 	 */
38 41
 	static function init( $method = null, $url = null, $post_body = null ) {
@@ -335,6 +338,9 @@  discard block
 block discarded – undo
335 338
 		return call_user_func_array( array( $endpoint, 'callback' ), $path_pieces );
336 339
 	}
337 340
 
341
+	/**
342
+	 * @param integer $status_code
343
+	 */
338 344
 	function output_early( $status_code, $response = null, $content_type = 'application/json' ) {
339 345
 		$exit = $this->exit;
340 346
 		$this->exit = false;
@@ -543,11 +549,18 @@  discard block
 block discarded – undo
543 549
 		return json_encode( $data );
544 550
 	}
545 551
 
552
+	/**
553
+	 * @param string $needle
554
+	 */
546 555
 	function ends_with( $haystack, $needle ) {
547 556
 		return $needle === substr( $haystack, -strlen( $needle ) );
548 557
 	}
549 558
 
550 559
 	// Returns the site's blog_id in the WP.com ecosystem
560
+
561
+	/**
562
+	 * @return integer
563
+	 */
551 564
 	function get_blog_id_for_output() {
552 565
 		return $this->token_details['blog_id'];
553 566
 	}
@@ -570,6 +583,10 @@  discard block
 block discarded – undo
570 583
 	}
571 584
 
572 585
 	// Returns true if the specified blog ID is a restricted blog
586
+
587
+	/**
588
+	 * @param integer $blog_id
589
+	 */
573 590
 	function is_restricted_blog( $blog_id ) {
574 591
 		/**
575 592
 		 * Filters all REST API access and return a 403 unauthorized response for all Restricted blog IDs.
@@ -619,7 +636,7 @@  discard block
 block discarded – undo
619 636
 	/**
620 637
 	 * Counts the number of comments on a site, excluding certain comment types.
621 638
 	 *
622
-	 * @param $post_id int Post ID.
639
+	 * @param integer $post_id int Post ID.
623 640
 	 * @return array Array of counts, matching the output of https://developer.wordpress.org/reference/functions/get_comment_count/.
624 641
 	 */
625 642
 	public function wp_count_comments( $post_id ) {
Please login to merge, or discard this patch.