Completed
Push — branch-8.7-built ( df1e2e...1e0313 )
by Jeremy
05:49 queued 46s
created
_inc/lib/class-jetpack-podcast-helper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 	 * Loads an RSS feed using `fetch_feed`.
59 59
 	 *
60 60
 	 * @param string $feed        The RSS feed URL to load.
61
-	 * @return SimplePie|WP_Error The RSS object or error.
61
+	 * @return string The RSS object or error.
62 62
 	 */
63 63
 	private static function load_feed( $feed ) {
64 64
 		$rss = fetch_feed( esc_url_raw( $feed ) );
Please login to merge, or discard this patch.
sal/class.json-api-site-jetpack.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -165,6 +165,9 @@  discard block
 block discarded – undo
165 165
 		return $this->get_atomic_cloud_site_option( 'launch-status' );
166 166
 	}
167 167
 
168
+	/**
169
+	 * @param string $option
170
+	 */
168 171
 	function get_atomic_cloud_site_option( $option ) {
169 172
 		if ( ! jetpack_is_atomic_site() ) {
170 173
 			return false;
@@ -233,6 +236,9 @@  discard block
 block discarded – undo
233 236
 		return false;
234 237
 	}
235 238
 
239
+	/**
240
+	 * @param string $role
241
+	 */
236 242
 	function current_user_can( $role ) {
237 243
 		return current_user_can( $role );
238 244
 	}
Please login to merge, or discard this patch.
_inc/lib/class.core-rest-api-endpoints.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -1264,7 +1264,6 @@
 block discarded – undo
1264 1264
 	 *
1265 1265
 	 * @since 4.3.0
1266 1266
 	 *
1267
-	 * @param WP_REST_Request $request The request sent to the WP REST API.
1268 1267
 	 *
1269 1268
 	 * @return object
1270 1269
 	 */
Please login to merge, or discard this patch.
3rd-party/class-jetpack-bbpress-rest-api.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	 *
46 46
 	 * @param array $allowed_post_types Allowed post types.
47 47
 	 *
48
-	 * @return array
48
+	 * @return string[]
49 49
 	 */
50 50
 	public function allow_bbpress_post_types( $allowed_post_types ) {
51 51
 		$allowed_post_types[] = 'forum';
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 *
60 60
 	 * @param array $allowed_meta_keys Allowed meta keys.
61 61
 	 *
62
-	 * @return array
62
+	 * @return string[]
63 63
 	 */
64 64
 	public function allow_bbpress_public_metadata( $allowed_meta_keys ) {
65 65
 		$allowed_meta_keys[] = '_bbp_forum_id';
Please login to merge, or discard this patch.
_inc/lib/class.jetpack-password-checker.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -410,7 +410,7 @@
 block discarded – undo
410 410
 	 *
411 411
 	 * @param Mixed $needle the needle.
412 412
 	 * @param array $haystack the haystack.
413
-	 * @return is the needle not in the haystack?
413
+	 * @return boolean the needle not in the haystack?
414 414
 	 */
415 415
 	protected function negative_in_array( $needle, $haystack ) {
416 416
 		if ( in_array( $needle, $haystack, true ) ) {
Please login to merge, or discard this patch.
class.json-api.php 1 patch
Doc Comments   +15 added lines, -1 removed lines patch added patch discarded remove patch
@@ -348,6 +348,9 @@  discard block
 block discarded – undo
348 348
 		return call_user_func_array( array( $endpoint, 'callback' ), $path_pieces );
349 349
 	}
350 350
 
351
+	/**
352
+	 * @param integer $status_code
353
+	 */
351 354
 	function output_early( $status_code, $response = null, $content_type = 'application/json' ) {
352 355
 		$exit       = $this->exit;
353 356
 		$this->exit = false;
@@ -571,11 +574,18 @@  discard block
 block discarded – undo
571 574
 		return wp_json_encode( $data );
572 575
 	}
573 576
 
577
+	/**
578
+	 * @param string $needle
579
+	 */
574 580
 	function ends_with( $haystack, $needle ) {
575 581
 		return $needle === substr( $haystack, -strlen( $needle ) );
576 582
 	}
577 583
 
578 584
 	// Returns the site's blog_id in the WP.com ecosystem
585
+
586
+	/**
587
+	 * @return integer
588
+	 */
579 589
 	function get_blog_id_for_output() {
580 590
 		return $this->token_details['blog_id'];
581 591
 	}
@@ -598,6 +608,10 @@  discard block
 block discarded – undo
598 608
 	}
599 609
 
600 610
 	// Returns true if the specified blog ID is a restricted blog
611
+
612
+	/**
613
+	 * @param integer $blog_id
614
+	 */
601 615
 	function is_restricted_blog( $blog_id ) {
602 616
 		/**
603 617
 		 * Filters all REST API access and return a 403 unauthorized response for all Restricted blog IDs.
@@ -647,7 +661,7 @@  discard block
 block discarded – undo
647 661
 	/**
648 662
 	 * Counts the number of comments on a site, excluding certain comment types.
649 663
 	 *
650
-	 * @param $post_id int Post ID.
664
+	 * @param integer $post_id int Post ID.
651 665
 	 * @return array Array of counts, matching the output of https://developer.wordpress.org/reference/functions/get_comment_count/.
652 666
 	 */
653 667
 	public function wp_count_comments( $post_id ) {
Please login to merge, or discard this patch.
wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-external-media.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@
 block discarded – undo
297 297
 	 * Returns a download URL, dealing with Google's long file names.
298 298
 	 *
299 299
 	 * @param array $guid Media information.
300
-	 * @return string|\WP_Error
300
+	 * @return string
301 301
 	 */
302 302
 	public function get_download_url( $guid ) {
303 303
 		$this->tmp_name = $guid['name'];
Please login to merge, or discard this patch.
modules/scan/class-admin-bar-notice.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
 	/**
144 144
 	 *
145 145
 	 * Return Whether boolean cached threats exist or null if the state is unknown.
146
-	 * * @return boolean or null
146
+	 * * @return null|boolean or null
147 147
 	 */
148 148
 	public function has_threats() {
149 149
 		$scan_state = get_transient( 'jetpack_scan_state' );
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +34 added lines, -17 removed lines patch added patch discarded remove patch
@@ -900,7 +900,7 @@  discard block
 block discarded – undo
900 900
 	 * This is ported over from the manage module, which has been deprecated and baked in here.
901 901
 	 *
902 902
 	 * @param $domains
903
-	 * @return array
903
+	 * @return string[]
904 904
 	 */
905 905
 	function allow_wpcom_domain( $domains ) {
906 906
 		if ( empty( $domains ) ) {
@@ -1330,7 +1330,7 @@  discard block
 block discarded – undo
1330 1330
 	/**
1331 1331
 	 * Does the network allow admins to add new users.
1332 1332
 	 *
1333
-	 * @return boolian
1333
+	 * @return boolean
1334 1334
 	 */
1335 1335
 	static function network_add_new_users( $option = null ) {
1336 1336
 		return (bool) get_site_option( 'add_new_users' );
@@ -1440,7 +1440,7 @@  discard block
 block discarded – undo
1440 1440
 	 *
1441 1441
 	 * @param  bool $option
1442 1442
 	 *
1443
-	 * @return boolean
1443
+	 * @return string
1444 1444
 	 */
1445 1445
 	public function is_main_network_option( $option ) {
1446 1446
 		// return '1' or ''
@@ -1451,7 +1451,7 @@  discard block
 block discarded – undo
1451 1451
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1452 1452
 	 *
1453 1453
 	 * @param  string $option
1454
-	 * @return boolean
1454
+	 * @return string
1455 1455
 	 */
1456 1456
 	public function is_multisite( $option ) {
1457 1457
 		return (string) (bool) is_multisite();
@@ -1514,7 +1514,7 @@  discard block
 block discarded – undo
1514 1514
 	/**
1515 1515
 	 * Returns true if the site has file write access false otherwise.
1516 1516
 	 *
1517
-	 * @return string ( '1' | '0' )
1517
+	 * @return integer ( '1' | '0' )
1518 1518
 	 **/
1519 1519
 	public static function file_system_write_access() {
1520 1520
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -2680,7 +2680,7 @@  discard block
 block discarded – undo
2680 2680
 	 *
2681 2681
 	 * @param string $tag Tag as it appears in each module heading.
2682 2682
 	 *
2683
-	 * @return mixed
2683
+	 * @return string
2684 2684
 	 */
2685 2685
 	public static function translate_module_tag( $tag ) {
2686 2686
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2852,8 +2852,8 @@  discard block
 block discarded – undo
2852 2852
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2853 2853
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2854 2854
 	 *
2855
-	 * @param $string
2856
-	 * @return mixed
2855
+	 * @param string $string
2856
+	 * @return string|null
2857 2857
 	 */
2858 2858
 	public static function alias_directories( $string ) {
2859 2859
 		// ABSPATH has a trailing slash.
@@ -2864,6 +2864,10 @@  discard block
 block discarded – undo
2864 2864
 		return $string;
2865 2865
 	}
2866 2866
 
2867
+	/**
2868
+	 * @param boolean $redirect
2869
+	 * @param boolean $send_state_messages
2870
+	 */
2867 2871
 	public static function activate_default_modules(
2868 2872
 		$min_version = false,
2869 2873
 		$max_version = false,
@@ -3129,6 +3133,9 @@  discard block
 block discarded – undo
3129 3133
 		_deprecated_function( __METHOD__, 'jetpack-4.2' );
3130 3134
 	}
3131 3135
 
3136
+	/**
3137
+	 * @return string
3138
+	 */
3132 3139
 	public static function deactivate_module( $module ) {
3133 3140
 		/**
3134 3141
 		 * Fires when a module is deactivated.
@@ -3147,6 +3154,9 @@  discard block
 block discarded – undo
3147 3154
 		return self::update_active_modules( $new );
3148 3155
 	}
3149 3156
 
3157
+	/**
3158
+	 * @param string $module
3159
+	 */
3150 3160
 	public static function enable_module_configurable( $module ) {
3151 3161
 		$module = self::get_module_slug( $module );
3152 3162
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -3175,6 +3185,10 @@  discard block
 block discarded – undo
3175 3185
 	}
3176 3186
 
3177 3187
 	/* Installation */
3188
+
3189
+	/**
3190
+	 * @param string $message
3191
+	 */
3178 3192
 	public static function bail_on_activation( $message, $deactivate = true ) {
3179 3193
 		?>
3180 3194
 <!doctype html>
@@ -3946,7 +3960,7 @@  discard block
 block discarded – undo
3946 3960
 	 * Add help to the Jetpack page
3947 3961
 	 *
3948 3962
 	 * @since Jetpack (1.2.3)
3949
-	 * @return false if not the Jetpack page
3963
+	 * @return false|null if not the Jetpack page
3950 3964
 	 */
3951 3965
 	function admin_help() {
3952 3966
 		$current_screen = get_current_screen();
@@ -5342,7 +5356,7 @@  discard block
 block discarded – undo
5342 5356
 	 * @param String  $action  The action name.
5343 5357
 	 * @param Integer $user_id The user identifier.
5344 5358
 	 * @param Integer $exp     Expiration time in seconds.
5345
-	 * @return array
5359
+	 * @return boolean
5346 5360
 	 */
5347 5361
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
5348 5362
 		return self::connection()->generate_secrets( $action, $user_id, $exp );
@@ -5662,7 +5676,6 @@  discard block
 block discarded – undo
5662 5676
 	/**
5663 5677
 	 * Report authentication status to the WP REST API.
5664 5678
 	 *
5665
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5666 5679
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5667 5680
 	 */
5668 5681
 	public function wp_rest_authentication_errors( $value ) {
@@ -5789,6 +5802,7 @@  discard block
 block discarded – undo
5789 5802
 	 * @param string $key
5790 5803
 	 * @param string $value
5791 5804
 	 * @param bool   $restate private
5805
+	 * @return string
5792 5806
 	 */
5793 5807
 	public static function state( $key = null, $value = null, $restate = false ) {
5794 5808
 		static $state = array();
@@ -5870,6 +5884,9 @@  discard block
 block discarded – undo
5870 5884
 		return true;
5871 5885
 	}
5872 5886
 
5887
+	/**
5888
+	 * @param string $file
5889
+	 */
5873 5890
 	public static function check_privacy( $file ) {
5874 5891
 		static $is_site_publicly_accessible = null;
5875 5892
 
@@ -5950,6 +5967,9 @@  discard block
 block discarded – undo
5950 5967
 		}
5951 5968
 	}
5952 5969
 
5970
+	/**
5971
+	 * @param string $url
5972
+	 */
5953 5973
 	public static function staticize_subdomain( $url ) {
5954 5974
 
5955 5975
 		// Extract hostname from URL
@@ -6466,9 +6486,7 @@  discard block
 block discarded – undo
6466 6486
 	 *
6467 6487
 	 * Attached to `style_loader_src` filter.
6468 6488
 	 *
6469
-	 * @param string $tag The tag that would link to the external asset.
6470 6489
 	 * @param string $handle The registered handle of the script in question.
6471
-	 * @param string $href The url of the asset in question.
6472 6490
 	 */
6473 6491
 	public static function set_suffix_on_min( $src, $handle ) {
6474 6492
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6675,8 +6693,8 @@  discard block
 block discarded – undo
6675 6693
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6676 6694
 	 *  - Domain root relative URLs `/feh.png`
6677 6695
 	 *
6678
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6679
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6696
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6697
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6680 6698
 	 *
6681 6699
 	 * @return mixed|string
6682 6700
 	 */
@@ -6927,7 +6945,7 @@  discard block
 block discarded – undo
6927 6945
 	/**
6928 6946
 	 * Stores and prints out domains to prefetch for page speed optimization.
6929 6947
 	 *
6930
-	 * @param mixed $new_urls
6948
+	 * @param string[] $new_urls
6931 6949
 	 */
6932 6950
 	public static function dns_prefetch( $new_urls = null ) {
6933 6951
 		static $prefetch_urls = array();
@@ -6984,7 +7002,6 @@  discard block
 block discarded – undo
6984 7002
 	}
6985 7003
 
6986 7004
 	/**
6987
-	 * @param mixed $result Value for the user's option
6988 7005
 	 * @return mixed
6989 7006
 	 */
6990 7007
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.