Completed
Pull Request — update/dialogue-participant-ca... (#18674)
by
unknown
24:33 queued 15:11
created
projects/plugins/jetpack/modules/widgets/eu-cookie-law.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 		 *
117 117
 		 * These values are used in new widgets.
118 118
 		 *
119
-		 * @return array Default values for the widget options.
119
+		 * @return string Default values for the widget options.
120 120
 		 */
121 121
 		public function defaults() {
122 122
 			return array(
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/widgets/facebook-likebox.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -231,6 +231,9 @@  discard block
 block discarded – undo
231 231
 		<?php
232 232
 	}
233 233
 
234
+	/**
235
+	 * @return string
236
+	 */
234 237
 	function get_default_args() {
235 238
 		$defaults = array(
236 239
 			'href'         => '',
@@ -292,6 +295,9 @@  discard block
 block discarded – undo
292 295
 		return ( false !== strpos( $url, 'facebook.com' ) ) ? true : false;
293 296
 	}
294 297
 
298
+	/**
299
+	 * @param integer $value
300
+	 */
295 301
 	function normalize_int_value( $value, $default = 0, $max = 0, $min = 0 ) {
296 302
 		$value = (int) $value;
297 303
 
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/widgets/flickr.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 		 *
117 117
 		 * These values are used in new widgets.
118 118
 		 *
119
-		 * @return array Default values for the widget options.
119
+		 * @return string Default values for the widget options.
120 120
 		 */
121 121
 		public function defaults() {
122 122
 			return array(
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/widgets/gallery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@
 block discarded – undo
387 387
 	 * These values are used in new widgets as well as when sanitizing input. If a given value is not allowed,
388 388
 	 * as defined in allowed_values(), that input is set to the default value defined here.
389 389
 	 *
390
-	 * @return array Array of default values for the Widget's options
390
+	 * @return string Array of default values for the Widget's options
391 391
 	 */
392 392
 	public function defaults() {
393 393
 		return array(
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/widgets/goodreads.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@
 block discarded – undo
90 90
 		echo $args['after_widget'];
91 91
 	}
92 92
 
93
+	/**
94
+	 * @param string $user_id
95
+	 */
93 96
 	function goodreads_user_id_exists( $user_id ) {
94 97
 		$url      = "https://www.goodreads.com/user/show/$user_id/";
95 98
 		$response = wp_remote_head(
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/widgets/internet-defense-league.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -129,6 +129,9 @@
 block discarded – undo
129 129
 		echo '<p>' . sprintf( _x( 'Learn more about the %s', 'the Internet Defense League', 'jetpack' ), '<a href="https://www.internetdefenseleague.org/">Internet Defense League</a>' ) . '</p>';
130 130
 	}
131 131
 
132
+	/**
133
+	 * @param string $field_name
134
+	 */
132 135
 	public function select( $field_name, $options, $default = null ) {
133 136
 		echo '<select class="widefat" name="' . $this->get_field_name( $field_name ) . '">';
134 137
 		foreach ( $options as $option_slug => $option_name ) {
Please login to merge, or discard this patch.
plugins/jetpack/modules/widgets/milestone/class-milestone-widget.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -595,7 +595,7 @@
 block discarded – undo
595 595
 	 *
596 596
 	 * @param array $dirty Unsantized data for the widget.
597 597
 	 *
598
-	 * @return array Santized data.
598
+	 * @return integer Santized data.
599 599
 	 */
600 600
 	public function sanitize_instance( $dirty ) {
601 601
 		$now = (int) current_time( 'timestamp' ); // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/widgets/rsslinks-widget.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 * Return an associative array of default values
63 63
 	 * These values are used in new widgets as well as when sanitizing input.
64 64
 	 *
65
-	 * @return array Array of default values for the Widget's options
65
+	 * @return string Array of default values for the Widget's options
66 66
 	 */
67 67
 	function defaults() {
68 68
 		return array(
@@ -172,6 +172,9 @@  discard block
 block discarded – undo
172 172
 		echo '</select></label></p></div>';
173 173
 	}
174 174
 
175
+	/**
176
+	 * @param string $type
177
+	 */
175 178
 	function _rss_link( $type, $args ) {
176 179
 		if ( 'posts' == $type ) {
177 180
 			$type_text = __( 'Posts', 'jetpack' );
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/widgets/simple-payments.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 		 * Returns the number of decimal places on string representing a price.
277 277
 		 *
278 278
 		 * @param string $number Price to check.
279
-		 * @return number number of decimal places.
279
+		 * @return null|integer number of decimal places.
280 280
 		 */
281 281
 		private function get_decimal_places( $number ) {
282 282
 			$parts = explode( '.', $number );
@@ -377,8 +377,7 @@  discard block
 block discarded – undo
377 377
 		/**
378 378
 		 * Gets the latests field value from either the old instance or the new instance.
379 379
 		 *
380
-		 * @param array $mixed Array of values for the new form instance.
381
-		 * @param array $mixed Array of values for the old form instance.
380
+		 * @param string $field
382 381
 		 * @return mixed $mixed Field value.
383 382
 		 */
384 383
 		private function get_latest_field_value( $new_instance, $old_instance, $field ) {
@@ -392,6 +391,7 @@  discard block
 block discarded – undo
392 391
 		 * it returns the default values.
393 392
 		 *
394 393
 		 * @param int Product Post ID.
394
+		 * @param integer $product_post_id
395 395
 		 * @return array $fields Product Fields from the Product Post.
396 396
 		 */
397 397
 		private function get_product_from_post( $product_post_id ) {
Please login to merge, or discard this patch.