Completed
Push — renovate/wp-coding-standards-w... ( dd8c2f...3c7f69 )
by
unknown
24:59 queued 16:52
created
modules/sharedaddy/sharing-sources.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@  discard block
 block discarded – undo
42 42
 		return $this->id;
43 43
 	}
44 44
 
45
+	/**
46
+	 * @return string
47
+	 */
45 48
 	public function get_share_url( $post_id ) {
46 49
 		/**
47 50
 		 * Filter the sharing permalink.
@@ -324,6 +327,9 @@  discard block
 block discarded – undo
324 327
 		do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) );
325 328
 	}
326 329
 
330
+	/**
331
+	 * @param string $name
332
+	 */
327 333
 	public function js_dialog( $name, $params = array() ) {
328 334
 		if ( true !== $this->open_link_in_new ) {
329 335
 			return;
@@ -1463,6 +1469,9 @@  discard block
 block discarded – undo
1463 1469
 		return __( 'Pinterest', 'jetpack' );
1464 1470
 	}
1465 1471
 
1472
+	/**
1473
+	 * @return string
1474
+	 */
1466 1475
 	public function get_image( $post ) {
1467 1476
 		if ( class_exists( 'Jetpack_PostImages' ) ) {
1468 1477
 			$image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) );
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
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 	 *
130 130
 	 * @param string $group Testing group to check status of. Optional, default all tests.
131 131
 	 *
132
-	 * @return true|array True if all tests pass. Array of failed tests.
132
+	 * @return boolean True if all tests pass. Array of failed tests.
133 133
 	 */
134 134
 	public function pass( $group = 'default' ) {
135 135
 		$results = $this->raw_results( $group );
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.
sync/class.jetpack-sync-settings.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -135,6 +135,9 @@  discard block
 block discarded – undo
135 135
 		self::set_is_sending( null );
136 136
 	}
137 137
 
138
+	/**
139
+	 * @param boolean|null $is_importing
140
+	 */
138 141
 	static function set_importing( $is_importing ) {
139 142
 		// set to NULL to revert to WP_IMPORTING, the standard behavior
140 143
 		self::$is_importing = $is_importing;
@@ -165,6 +168,9 @@  discard block
 block discarded – undo
165 168
 		return (bool) self::$is_syncing || ( defined( 'REST_API_REQUEST' ) && REST_API_REQUEST );
166 169
 	}
167 170
 
171
+	/**
172
+	 * @param boolean|null $is_syncing
173
+	 */
168 174
 	static function set_is_syncing( $is_syncing ) {
169 175
 		self::$is_syncing = $is_syncing;
170 176
 	}
@@ -173,6 +179,9 @@  discard block
 block discarded – undo
173 179
 		return (bool) self::$is_sending;
174 180
 	}
175 181
 
182
+	/**
183
+	 * @param boolean|null $is_sending
184
+	 */
176 185
 	static function set_is_sending( $is_sending ) {
177 186
 		self::$is_sending = $is_sending;
178 187
 	}
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
@@ -300,6 +300,9 @@  discard block
 block discarded – undo
300 300
 		return Grunion_Contact_Form::parse( $atts, do_blocks( $content ) );
301 301
 	}
302 302
 
303
+	/**
304
+	 * @param string $type
305
+	 */
303 306
 	public static function block_attributes_to_shortcode_attributes( $atts, $type ) {
304 307
 		$atts['type'] = $type;
305 308
 		if ( isset( $atts['className'] ) ) {
@@ -1918,7 +1921,6 @@  discard block
 block discarded – undo
1918 1921
 	 *
1919 1922
 	 * @see ::style()
1920 1923
 	 * @internal
1921
-	 * @param bool $style
1922 1924
 	 */
1923 1925
 	static function _style_on() {
1924 1926
 		return self::style( true );
@@ -2086,6 +2088,7 @@  discard block
 block discarded – undo
2086 2088
 	 *
2087 2089
 	 * @param int                         $feedback_id
2088 2090
 	 * @param object Grunion_Contact_Form $form
2091
+	 * @param Grunion_Contact_Form $form
2089 2092
 	 *
2090 2093
 	 * @return string $message
2091 2094
 	 */
@@ -2210,7 +2213,7 @@  discard block
 block discarded – undo
2210 2213
 	 *
2211 2214
 	 * @param array       $attributes Key => Value pairs as parsed by shortcode_parse_atts()
2212 2215
 	 * @param string|null $content The shortcode's inner content: [contact-field]$content[/contact-field]
2213
-	 * @return HTML for the contact form field
2216
+	 * @return string for the contact form field
2214 2217
 	 */
2215 2218
 	static function parse_contact_field( $attributes, $content ) {
2216 2219
 		// Don't try to parse contact form fields if not inside a contact form
@@ -3233,6 +3236,9 @@  discard block
 block discarded – undo
3233 3236
 
3234 3237
 	}
3235 3238
 
3239
+	/**
3240
+	 * @param string $type
3241
+	 */
3236 3242
 	function render_input_field( $type, $id, $value, $class, $placeholder, $required ) {
3237 3243
 		return "<input
3238 3244
 					type='". esc_attr( $type ) ."'
@@ -3244,24 +3250,40 @@  discard block
 block discarded – undo
3244 3250
 				/>\n";
3245 3251
 	}
3246 3252
 
3253
+	/**
3254
+	 * @param string $class
3255
+	 * @param string $placeholder
3256
+	 */
3247 3257
 	function render_email_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3248 3258
 		$field = $this->render_label( 'email', $id, $label, $required, $required_field_text );
3249 3259
 		$field .= $this->render_input_field( 'email', $id, $value, $class, $placeholder, $required );
3250 3260
 		return $field;
3251 3261
 	}
3252 3262
 
3263
+	/**
3264
+	 * @param string $class
3265
+	 * @param string $placeholder
3266
+	 */
3253 3267
 	function render_telephone_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3254 3268
 		$field = $this->render_label( 'telephone', $id, $label, $required, $required_field_text );
3255 3269
 		$field .= $this->render_input_field( 'tel', $id, $value, $class, $placeholder, $required );
3256 3270
 		return $field;
3257 3271
 	}
3258 3272
 
3273
+	/**
3274
+	 * @param string $class
3275
+	 * @param string $placeholder
3276
+	 */
3259 3277
 	function render_url_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3260 3278
 		$field = $this->render_label( 'url', $id, $label, $required, $required_field_text );
3261 3279
 		$field .= $this->render_input_field( 'url', $id, $value, $class, $placeholder, $required );
3262 3280
 		return $field;
3263 3281
 	}
3264 3282
 
3283
+	/**
3284
+	 * @param string $class
3285
+	 * @param string $placeholder
3286
+	 */
3265 3287
 	function render_textarea_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3266 3288
 		$field = $this->render_label( 'textarea', 'contact-form-comment-' . $id, $label, $required, $required_field_text );
3267 3289
 		$field .= "<textarea
@@ -3276,6 +3298,9 @@  discard block
 block discarded – undo
3276 3298
 		return $field;
3277 3299
 	}
3278 3300
 
3301
+	/**
3302
+	 * @param string $class
3303
+	 */
3279 3304
 	function render_radio_field( $id, $label, $value, $class, $required, $required_field_text ) {
3280 3305
 		$field = $this->render_label( '', $id, $label, $required, $required_field_text );
3281 3306
 		foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) {
@@ -3297,6 +3322,9 @@  discard block
 block discarded – undo
3297 3322
 		return $field;
3298 3323
 	}
3299 3324
 
3325
+	/**
3326
+	 * @param string $class
3327
+	 */
3300 3328
 	function render_checkbox_field( $id, $label, $value, $class, $required, $required_field_text ) {
3301 3329
 		$field = "<label class='grunion-field-label checkbox" . ( $this->is_error() ? ' form-error' : '' ) . "'>";
3302 3330
 			$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";
@@ -3306,6 +3334,9 @@  discard block
 block discarded – undo
3306 3334
 		return $field;
3307 3335
 	}
3308 3336
 
3337
+	/**
3338
+	 * @param string $class
3339
+	 */
3309 3340
 	function render_checkbox_multiple_field( $id, $label, $value, $class, $required, $required_field_text  ) {
3310 3341
 		$field = $this->render_label( '', $id, $label, $required, $required_field_text );
3311 3342
 		foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) {
@@ -3321,6 +3352,9 @@  discard block
 block discarded – undo
3321 3352
 		return $field;
3322 3353
 	}
3323 3354
 
3355
+	/**
3356
+	 * @param string $class
3357
+	 */
3324 3358
 	function render_select_field( $id, $label, $value, $class, $required, $required_field_text ) {
3325 3359
 		$field = $this->render_label( 'select', $id, $label, $required, $required_field_text );
3326 3360
 		$field  .= "\t<select name='" . esc_attr( $id ) . "' id='" . esc_attr( $id ) . "' " . $class . ( $required ? "required aria-required='true'" : '' ) . ">\n";
@@ -3338,6 +3372,10 @@  discard block
 block discarded – undo
3338 3372
 		return $field;
3339 3373
 	}
3340 3374
 
3375
+	/**
3376
+	 * @param string $class
3377
+	 * @param string $placeholder
3378
+	 */
3341 3379
 	function render_date_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3342 3380
 		$field = $this->render_label( 'date', $id, $label, $required, $required_field_text );
3343 3381
 		$field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required );
@@ -3357,6 +3395,10 @@  discard block
 block discarded – undo
3357 3395
 		return $field;
3358 3396
 	}
3359 3397
 
3398
+	/**
3399
+	 * @param string $class
3400
+	 * @param string $placeholder
3401
+	 */
3360 3402
 	function render_default_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder, $type ) {
3361 3403
 		$field = $this->render_label( $type, $id, $label, $required, $required_field_text );
3362 3404
 		$field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required );
Please login to merge, or discard this patch.
modules/publicize/ui.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
 	 *
442 442
 	 * @param array $connections_data
443 443
 	 *
444
-	 * @return array {
444
+	 * @return string {
445 445
 	 *     Array of content for generating connection form.
446 446
 	 *
447 447
 	 *     @type string HTML content of form
@@ -544,6 +544,9 @@  discard block
 block discarded – undo
544 544
 		return ob_get_clean();
545 545
 	}
546 546
 
547
+	/**
548
+	 * @return string
549
+	 */
547 550
 	private function google_plus_shut_down_notice() {
548 551
 		return wp_kses(
549 552
 			sprintf(
Please login to merge, or discard this patch.
_inc/lib/debugger/class-jetpack-cxn-tests.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 	/**
53 53
 	 * Helper function to look up the expected master user and return the local WP_User.
54 54
 	 *
55
-	 * @return WP_User Jetpack's expected master user.
55
+	 * @return string Jetpack's expected master user.
56 56
 	 */
57 57
 	protected function helper_retrieve_local_master_user() {
58 58
 		$master_user = Jetpack_Options::get_option( 'master_user' );
Please login to merge, or discard this patch.
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.