Passed
Branch ticket-41057 (c4f931)
by Stephen
24:38
created
src/wp-admin/includes/post.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1375,7 +1375,7 @@  discard block
 block discarded – undo
1375 1375
  * @since 2.9.0
1376 1376
  *
1377 1377
  * @param int $thumbnail_id ID of the attachment used for thumbnail
1378
- * @param mixed $post The post ID or object associated with the thumbnail, defaults to global $post.
1378
+ * @param integer $post The post ID or object associated with the thumbnail, defaults to global $post.
1379 1379
  * @return string html
1380 1380
  */
1381 1381
 function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) {
@@ -1449,7 +1449,7 @@  discard block
 block discarded – undo
1449 1449
  * @since 2.5.0
1450 1450
  *
1451 1451
  * @param int $post_id ID of the post to check for editing.
1452
- * @return int|false ID of the user with lock. False if the post does not exist, post is not locked,
1452
+ * @return integer ID of the user with lock. False if the post does not exist, post is not locked,
1453 1453
  *                   the user with lock does not exist, or the post is locked by current user.
1454 1454
  */
1455 1455
 function wp_check_post_lock( $post_id ) {
Please login to merge, or discard this patch.
src/wp-includes/class-wp-customize-control.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@
 block discarded – undo
293 293
 	 *
294 294
 	 * @since 4.0.0
295 295
 	 *
296
-	 * @return true Always true.
296
+	 * @return boolean Always true.
297 297
 	 */
298 298
 	public function active_callback() {
299 299
 		return true;
Please login to merge, or discard this patch.
src/wp-includes/class-wp-xmlrpc-server.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -408,7 +408,6 @@  discard block
 block discarded – undo
408 408
 	 *
409 409
 	 * @since 4.9.0
410 410
 	 *
411
-	 * @param int $post_id Post ID.
412 411
 	 * @return array Array of custom fields, if they exist.
413 412
 	 */
414 413
 	public function get_term_custom_fields( $term_id ) {
@@ -437,7 +436,6 @@  discard block
 block discarded – undo
437 436
 	 *
438 437
 	 * @since 4.9.0
439 438
 	 *
440
-	 * @param int $post_id Post ID.
441 439
 	 * @param array $fields Custom fields.
442 440
 	 */
443 441
 	public function set_term_custom_fields( $term_id, $fields ) {
Please login to merge, or discard this patch.
src/wp-includes/general-template.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3262,7 +3262,7 @@  discard block
 block discarded – undo
3262 3262
  *     @type string $before_page_number A string to appear before the page number. Default empty.
3263 3263
  *     @type string $after_page_number  A string to append after the page number. Default empty.
3264 3264
  * }
3265
- * @return array|string|void String of page links or array of page links.
3265
+ * @return string String of page links or array of page links.
3266 3266
  */
3267 3267
 function paginate_links( $args = '' ) {
3268 3268
 	global $wp_query, $wp_rewrite;
@@ -3423,7 +3423,7 @@  discard block
 block discarded – undo
3423 3423
  * @param string $key    The unique key for this theme.
3424 3424
  * @param string $name   The name of the theme.
3425 3425
  * @param string $url    The URL of the CSS file containing the color scheme.
3426
- * @param array  $colors Optional. An array of CSS color definition strings which are used
3426
+ * @param string[]  $colors Optional. An array of CSS color definition strings which are used
3427 3427
  *                       to give the user a feel for the theme.
3428 3428
  * @param array  $icons {
3429 3429
  *     Optional. CSS color definitions used to color any SVG icons.
Please login to merge, or discard this patch.
src/wp-includes/media.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
  *
328 328
  * @param int        $width  Image width in pixels.
329 329
  * @param int        $height Image height in pixels.
330
- * @param bool|array $crop   Optional. Whether to crop images to specified width and height or resize.
330
+ * @param boolean $crop   Optional. Whether to crop images to specified width and height or resize.
331 331
  *                           An array can specify positioning of the crop area. Default false.
332 332
  */
333 333
 function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) {
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
  *                                    width and height values in pixels (in that order). Default 'medium'.
1011 1011
  * @param array        $image_meta    Optional. The image meta data as returned by 'wp_get_attachment_metadata()'.
1012 1012
  *                                    Default null.
1013
- * @return string|bool A 'srcset' value string or false.
1013
+ * @return false|string A 'srcset' value string or false.
1014 1014
  */
1015 1015
 function wp_get_attachment_image_srcset( $attachment_id, $size = 'medium', $image_meta = null ) {
1016 1016
 	if ( ! $image = wp_get_attachment_image_src( $attachment_id, $size ) ) {
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
  * @param string $image_src     The 'src' of the image.
1040 1040
  * @param array  $image_meta    The image meta data as returned by 'wp_get_attachment_metadata()'.
1041 1041
  * @param int    $attachment_id Optional. The image attachment ID to pass to the filter. Default 0.
1042
- * @return string|bool          The 'srcset' attribute value. False on error or when only one source exists.
1042
+ * @return false|string          The 'srcset' attribute value. False on error or when only one source exists.
1043 1043
  */
1044 1044
 function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attachment_id = 0 ) {
1045 1045
 	/**
@@ -3662,7 +3662,7 @@  discard block
 block discarded – undo
3662 3662
  * @since 3.6.0
3663 3663
  *
3664 3664
  * @param string      $type Mime type.
3665
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
3665
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
3666 3666
  * @return array Found attachments.
3667 3667
  */
3668 3668
 function get_attached_media( $type, $post = 0 ) {
@@ -3815,7 +3815,7 @@  discard block
 block discarded – undo
3815 3815
  *
3816 3816
  * @since 3.6.0
3817 3817
  *
3818
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
3818
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
3819 3819
  * @param bool        $html Optional. Whether to return HTML or data. Default is true.
3820 3820
  * @return string|array Gallery data and srcs parsed from the expanded shortcode.
3821 3821
  */
@@ -3842,7 +3842,7 @@  discard block
 block discarded – undo
3842 3842
  *
3843 3843
  * @see get_post_galleries()
3844 3844
  *
3845
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
3845
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global `$post`.
3846 3846
  * @return array A list of lists, each containing image srcs parsed.
3847 3847
  *               from an expanded shortcode
3848 3848
  */
@@ -3858,7 +3858,7 @@  discard block
 block discarded – undo
3858 3858
  *
3859 3859
  * @see get_post_gallery()
3860 3860
  *
3861
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
3861
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global `$post`.
3862 3862
  * @return array A list of a gallery's image srcs in order.
3863 3863
  */
3864 3864
 function get_post_gallery_images( $post = 0 ) {
@@ -3941,7 +3941,7 @@  discard block
 block discarded – undo
3941 3941
  *
3942 3942
  * @since 4.0.0
3943 3943
  *
3944
- * @return array The relevant CSS file URLs.
3944
+ * @return string[] The relevant CSS file URLs.
3945 3945
  */
3946 3946
 function wpview_media_sandbox_styles() {
3947 3947
  	$version = 'ver=' . get_bloginfo( 'version' );
Please login to merge, or discard this patch.
src/wp-includes/ms-load.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
  *
66 66
  * @since 3.0.0
67 67
  *
68
- * @return true|string Returns true on success, or drop-in file to include.
68
+ * @return boolean|string Returns true on success, or drop-in file to include.
69 69
  */
70 70
 function ms_site_check() {
71 71
 
Please login to merge, or discard this patch.
src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,6 @@
 block discarded – undo
127 127
 	 *
128 128
 	 * @since 4.7.2
129 129
 	 *
130
-	 * @param int $id Supplied ID.
131 130
 	 * @return WP_Post|WP_Error Post object if ID is valid, WP_Error otherwise.
132 131
 	 */
133 132
 	protected function get_parent( $parent ) {
Please login to merge, or discard this patch.
src/wp-includes/rss.php 1 patch
Doc Comments   +13 added lines, -4 removed lines patch added patch discarded remove patch
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
  * @subpackage MagpieRSS
408 408
  *
409 409
  * @param string $url URL to retrieve feed
410
- * @return bool|MagpieRSS false on failure or MagpieRSS object on success.
410
+ * @return integer|null false on failure or MagpieRSS object on success.
411 411
  */
412 412
 function fetch_rss ($url) {
413 413
 	// initialize constants
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
  *
546 546
  * @param string $url URL to retrieve
547 547
  * @param array $headers Optional. Headers to send to the URL.
548
- * @return Snoopy style response
548
+ * @return stdClass style response
549 549
  */
550 550
 function _fetch_remote_file($url, $headers = "" ) {
551 551
 	$resp = wp_safe_remote_request( $url, array( 'headers' => $headers, 'timeout' => MAGPIE_FETCH_TIME_OUT ) );
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
  * @package External
588 588
  * @subpackage MagpieRSS
589 589
  *
590
- * @param array $resp
590
+ * @param stdClass $resp
591 591
  * @return MagpieRSS|bool
592 592
  */
593 593
 function _response_to_rss ($resp) {
@@ -744,6 +744,9 @@  discard block
 block discarded – undo
744 744
 	Input:		url from which the rss file was fetched
745 745
 	Output:		true on success
746 746
 \*=======================================================================*/
747
+	/**
748
+	 * @param string $url
749
+	 */
747 750
 	function set ($url, $rss) {
748 751
 		$cache_option = 'rss_' . $this->file_name( $url );
749 752
 
@@ -758,6 +761,9 @@  discard block
 block discarded – undo
758 761
 	Input:		url from which the rss file was fetched
759 762
 	Output:		cached object on HIT, false on MISS
760 763
 \*=======================================================================*/
764
+	/**
765
+	 * @param string $url
766
+	 */
761 767
 	function get ($url) {
762 768
 		$this->ERROR = "";
763 769
 		$cache_option = 'rss_' . $this->file_name( $url );
@@ -779,6 +785,9 @@  discard block
 block discarded – undo
779 785
 	Input:		url from which the rss file was fetched
780 786
 	Output:		cached object on HIT, false on MISS
781 787
 \*=======================================================================*/
788
+	/**
789
+	 * @param string $url
790
+	 */
782 791
 	function check_cache ( $url ) {
783 792
 		$this->ERROR = "";
784 793
 		$cache_option = 'rss_' . $this->file_name( $url );
@@ -934,7 +943,7 @@  discard block
 block discarded – undo
934 943
  *
935 944
  * @param string $url URL of feed to display. Will not auto sense feed URL.
936 945
  * @param int $num_items Optional. Number of items to display, default is all.
937
- * @return bool False on failure.
946
+ * @return null|false False on failure.
938 947
  */
939 948
 function get_rss ($url, $num_items = 5) { // Like get posts, but for RSS
940 949
 	$rss = fetch_rss($url);
Please login to merge, or discard this patch.
src/wp-includes/theme.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1834,7 +1834,7 @@  discard block
 block discarded – undo
1834 1834
  *
1835 1835
  * @global array $editor_styles
1836 1836
  *
1837
- * @param array|string $stylesheet Optional. Stylesheet name or array thereof, relative to theme root.
1837
+ * @param string[] $stylesheet Optional. Stylesheet name or array thereof, relative to theme root.
1838 1838
  * 	                               Defaults to 'editor-style.css'
1839 1839
  */
1840 1840
 function add_editor_style( $stylesheet = 'editor-style.css' ) {
@@ -2217,7 +2217,6 @@  discard block
 block discarded – undo
2217 2217
  * @param string $feature  The feature being added. Likely core values include 'post-formats',
2218 2218
  *                         'post-thumbnails', 'html5', 'custom-logo', 'custom-header-uploads',
2219 2219
  *                         'custom-header', 'custom-background', 'title-tag', 'starter-content', etc.
2220
- * @param mixed  $args,... Optional extra arguments to pass along with certain features.
2221 2220
  * @return void|bool False on failure, void otherwise.
2222 2221
  */
2223 2222
 function add_theme_support( $feature ) {
Please login to merge, or discard this patch.