Passed
Branch ticket-41057 (c4f931)
by Stephen
24:38
created
src/wp-includes/rest-api/class-wp-rest-server.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -907,7 +907,7 @@
 block discarded – undo
907 907
 	 * @since 4.4.0
908 908
 	 * @access protected
909 909
 	 *
910
-	 * @return bool|string Boolean false or string error message.
910
+	 * @return false|string Boolean false or string error message.
911 911
 	 */
912 912
 	protected function get_json_last_error() {
913 913
 		// See https://core.trac.wordpress.org/ticket/27799.
Please login to merge, or discard this patch.
tools/i18n/makepot.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -156,6 +156,9 @@  discard block
 block discarded – undo
156 156
 			unlink( $temp_file );
157 157
 	}
158 158
 
159
+	/**
160
+	 * @param string $file
161
+	 */
159 162
 	private function tempnam( $file ) {
160 163
 		$tempnam = tempnam( sys_get_temp_dir(), $file );
161 164
 		$this->temp_files[] = $tempnam;
@@ -235,6 +238,9 @@  discard block
 block discarded – undo
235 238
 		return $res;
236 239
 	}
237 240
 
241
+	/**
242
+	 * @param string $output
243
+	 */
238 244
 	public function wp_frontend( $dir, $output ) {
239 245
 		if ( ! file_exists( "$dir/wp-admin/user/about.php" ) ) {
240 246
 			return false;
@@ -255,6 +261,9 @@  discard block
 block discarded – undo
255 261
 		) );
256 262
 	}
257 263
 
264
+	/**
265
+	 * @param string $output
266
+	 */
258 267
 	public function wp_admin($dir, $output) {
259 268
 		$frontend_pot = $this->tempnam( 'frontend.pot' );
260 269
 		if ( false === $frontend_pot ) {
@@ -416,6 +425,7 @@  discard block
 block discarded – undo
416 425
 
417 426
 	/**
418 427
 	 * Removes any trailing closing comment / PHP tags from the header value
428
+	 * @param string $str
419 429
 	 */
420 430
 	private function _cleanup_header_comment( $str ) {
421 431
 		return trim( preg_replace( '/\s*(?:\*\/|\?>).*/', '', $str ) );
Please login to merge, or discard this patch.
src/wp-admin/includes/class-automatic-upgrader-skin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 	}
49 49
 
50 50
 	/**
51
-	 * @param string|array|WP_Error $data
51
+	 * @param string $data
52 52
 	 */
53 53
 	public function feedback( $data ) {
54 54
 		if ( is_wp_error( $data ) ) {
Please login to merge, or discard this patch.
src/wp-admin/includes/class-plugin-upgrader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
 	 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
205 205
 	 * @access public
206 206
 	 *
207
-	 * @param array $plugins Array of the basename paths of the plugins' main files.
207
+	 * @param string[] $plugins Array of the basename paths of the plugins' main files.
208 208
 	 * @param array $args {
209 209
 	 *     Optional. Other arguments for upgrading several plugins at once. Default empty array.
210 210
 	 *
Please login to merge, or discard this patch.
src/wp-admin/includes/list-table.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  *
18 18
  * @param string $class The type of the list table, which is the class name.
19 19
  * @param array $args Optional. Arguments to pass to the class. Accepts 'screen'.
20
- * @return object|bool Object on success, false if the class does not exist.
20
+ * @return string Object on success, false if the class does not exist.
21 21
  */
22 22
 function _get_list_table( $class, $args = array() ) {
23 23
 	$core_classes = array(
Please login to merge, or discard this patch.
src/wp-admin/includes/template.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -675,10 +675,10 @@  discard block
 block discarded – undo
675 675
  *
676 676
  * @global WP_Locale  $wp_locale
677 677
  *
678
- * @param int|bool $edit      Accepts 1|true for editing the date, 0|false for adding the date.
679
- * @param int|bool $for_post  Accepts 1|true for applying the date to a post, 0|false for a comment.
678
+ * @param integer $edit      Accepts 1|true for editing the date, 0|false for adding the date.
679
+ * @param integer $for_post  Accepts 1|true for applying the date to a post, 0|false for a comment.
680 680
  * @param int      $tab_index The tabindex attribute to add. Default 0.
681
- * @param int|bool $multi     Optional. Whether the additional fields and buttons should be added.
681
+ * @param integer $multi     Optional. Whether the additional fields and buttons should be added.
682 682
  *                            Default 0|false.
683 683
  */
684 684
 function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) {
@@ -984,7 +984,7 @@  discard block
 block discarded – undo
984 984
  * @staticvar bool $already_sorted
985 985
  * @param string|WP_Screen $screen  Screen identifier
986 986
  * @param string           $context box context
987
- * @param mixed            $object  gets passed to the box callback function as first parameter
987
+ * @param string            $object  gets passed to the box callback function as first parameter
988 988
  * @return int number of meta_boxes
989 989
  */
990 990
 function do_meta_boxes( $screen, $context, $object ) {
@@ -1533,7 +1533,7 @@  discard block
 block discarded – undo
1533 1533
  *
1534 1534
  * @since 2.7.0
1535 1535
  *
1536
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
1536
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
1537 1537
  * @return string The post title if set.
1538 1538
  */
1539 1539
 function _draft_or_post_title( $post = 0 ) {
Please login to merge, or discard this patch.
src/wp-includes/class-wp-widget.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 	 *
334 334
 	 * @param array     $args        Display arguments. See WP_Widget::widget() for information
335 335
 	 *                               on accepted arguments.
336
-	 * @param int|array $widget_args {
336
+	 * @param integer $widget_args {
337 337
 	 *     Optional. Internal order number of the widget instance, or array of multi-widget arguments.
338 338
 	 *     Default 1.
339 339
 	 *
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 	 * @since 2.8.0
474 474
 	 * @access public
475 475
 	 *
476
-	 * @param int|array $widget_args {
476
+	 * @param integer $widget_args {
477 477
 	 *     Optional. Internal order number of the widget instance, or array of multi-widget arguments.
478 478
 	 *     Default 1.
479 479
 	 *
Please login to merge, or discard this patch.
src/wp-includes/link-template.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @since 1.2.0
13 13
  * @since 4.4.0 Added the `$post` parameter.
14 14
  *
15
- * @param int|WP_Post $post Optional. Post ID or post object. Default is the global `$post`.
15
+ * @param integer $post Optional. Post ID or post object. Default is the global `$post`.
16 16
  */
17 17
 function the_permalink( $post = 0 ) {
18 18
 	/**
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
  *
98 98
  * @see get_permalink()
99 99
  *
100
- * @param int|WP_Post $post      Optional. Post ID or post object. Default is the global `$post`.
100
+ * @param integer $post      Optional. Post ID or post object. Default is the global `$post`.
101 101
  * @param bool        $leavename Optional. Whether to keep post name or page name. Default false.
102 102
  *
103 103
  * @return string|false The permalink URL or false if post does not exist.
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
  *
112 112
  * @since 1.0.0
113 113
  *
114
- * @param int|WP_Post $post      Optional. Post ID or post object. Default is the global `$post`.
114
+ * @param integer $post      Optional. Post ID or post object. Default is the global `$post`.
115 115
  * @param bool        $leavename Optional. Whether to keep post name or page name. Default false.
116 116
  * @return string|false The permalink URL or false if post does not exist.
117 117
  */
@@ -1387,7 +1387,7 @@  discard block
 block discarded – undo
1387 1387
  *
1388 1388
  * @since 2.3.0
1389 1389
  *
1390
- * @param int|WP_Comment $comment_id Optional. Comment ID or WP_Comment object.
1390
+ * @param integer $comment_id Optional. Comment ID or WP_Comment object.
1391 1391
  * @return string|void The edit comment link URL for the given comment.
1392 1392
  */
1393 1393
 function get_edit_comment_link( $comment_id = 0 ) {
@@ -1447,7 +1447,7 @@  discard block
 block discarded – undo
1447 1447
  *
1448 1448
  * @since 2.7.0
1449 1449
  *
1450
- * @param int|stdClass $link Optional. Bookmark ID. Default is the id of the current bookmark.
1450
+ * @param integer $link Optional. Bookmark ID. Default is the id of the current bookmark.
1451 1451
  * @return string|void The edit bookmark link URL.
1452 1452
  */
1453 1453
 function get_edit_bookmark_link( $link = 0 ) {
@@ -1545,7 +1545,7 @@  discard block
 block discarded – undo
1545 1545
  * @since 1.5.0
1546 1546
  *
1547 1547
  * @param bool         $in_same_term   Optional. Whether post should be in a same taxonomy term. Default false.
1548
- * @param array|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty.
1548
+ * @param string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty.
1549 1549
  * @param string       $taxonomy       Optional. Taxonomy, if $in_same_term is true. Default 'category'.
1550 1550
  * @return null|string|WP_Post Post object if successful. Null if global $post is not set. Empty string if no
1551 1551
  *                             corresponding post exists.
@@ -1560,7 +1560,7 @@  discard block
 block discarded – undo
1560 1560
  * @since 1.5.0
1561 1561
  *
1562 1562
  * @param bool         $in_same_term   Optional. Whether post should be in a same taxonomy term. Default false.
1563
- * @param array|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty.
1563
+ * @param string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty.
1564 1564
  * @param string       $taxonomy       Optional. Taxonomy, if $in_same_term is true. Default 'category'.
1565 1565
  * @return null|string|WP_Post Post object if successful. Null if global $post is not set. Empty string if no
1566 1566
  *                             corresponding post exists.
@@ -1873,7 +1873,7 @@  discard block
 block discarded – undo
1873 1873
  *
1874 1874
  * @param bool         $in_same_term   Optional. Whether returned post should be in a same taxonomy term.
1875 1875
  *                                     Default false.
1876
- * @param array|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs.
1876
+ * @param string $excluded_terms Optional. Array or comma-separated list of excluded term IDs.
1877 1877
  *                                     Default empty.
1878 1878
  * @param bool         $start          Optional. Whether to retrieve first or last post. Default true
1879 1879
  * @param string       $taxonomy       Optional. Taxonomy, if $in_same_term is true. Default 'category'.
@@ -2761,7 +2761,7 @@  discard block
 block discarded – undo
2761 2761
  * @global WP_Rewrite $wp_rewrite
2762 2762
  *
2763 2763
  * @param string|array $args Optional args. See paginate_links(). Default empty array.
2764
- * @return string|void Markup for pagination links.
2764
+ * @return string Markup for pagination links.
2765 2765
  */
2766 2766
 function paginate_comments_links( $args = array() ) {
2767 2767
 	global $wp_rewrite;
Please login to merge, or discard this patch.
src/wp-includes/Requests/IDNAEncoder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -357,7 +357,7 @@
 block discarded – undo
357 357
 	 * @param int $delta
358 358
 	 * @param int $numpoints
359 359
 	 * @param bool $firsttime
360
-	 * @return int New bias
360
+	 * @return double New bias
361 361
 	 */
362 362
 	protected static function adapt($delta, $numpoints, $firsttime) {
363 363
 #	function adapt(delta,numpoints,firsttime):
Please login to merge, or discard this patch.