Completed
Push — gm-17/payment-widget ( cb2702...55e70e )
by
unknown
13:32 queued 03:19
created
_inc/lib/class.core-rest-api-endpoints.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -598,7 +598,6 @@  discard block
 block discarded – undo
598 598
 	 * @uses Jetpack::disconnect();
599 599
 	 * @since 4.3.0
600 600
 	 *
601
-	 * @param WP_REST_Request $request The request sent to the WP REST API.
602 601
 	 *
603 602
 	 * @return string|WP_Error A raw URL if the connection URL could be built; error message otherwise.
604 603
 	 */
@@ -618,7 +617,6 @@  discard block
 block discarded – undo
618 617
 	 *
619 618
 	 * @since 4.3.0
620 619
 	 *
621
-	 * @param WP_REST_Request $request The request sent to the WP REST API.
622 620
 	 *
623 621
 	 * @return object
624 622
 	 */
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +43 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1024,7 +1024,7 @@  discard block
 block discarded – undo
1024 1024
 	}
1025 1025
 	/**
1026 1026
 	 * Does the network allow admins to add new users.
1027
-	 * @return boolian
1027
+	 * @return boolean
1028 1028
 	 */
1029 1029
 	static function network_add_new_users( $option = null ) {
1030 1030
 		return (bool) get_site_option( 'add_new_users' );
@@ -1129,7 +1129,7 @@  discard block
 block discarded – undo
1129 1129
 	 * database which could be set to anything as opposed to what this function returns.
1130 1130
 	 * @param  bool  $option
1131 1131
 	 *
1132
-	 * @return boolean
1132
+	 * @return string
1133 1133
 	 */
1134 1134
 	public function is_main_network_option( $option ) {
1135 1135
 		// return '1' or ''
@@ -1140,7 +1140,7 @@  discard block
 block discarded – undo
1140 1140
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1141 1141
 	 *
1142 1142
 	 * @param  string  $option
1143
-	 * @return boolean
1143
+	 * @return string
1144 1144
 	 */
1145 1145
 	public function is_multisite( $option ) {
1146 1146
 		return (string) (bool) is_multisite();
@@ -1202,7 +1202,7 @@  discard block
 block discarded – undo
1202 1202
 
1203 1203
 	/**
1204 1204
 	 * Returns true if the site has file write access false otherwise.
1205
-	 * @return string ( '1' | '0' )
1205
+	 * @return integer ( '1' | '0' )
1206 1206
 	 **/
1207 1207
 	public static function file_system_write_access() {
1208 1208
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -1441,6 +1441,7 @@  discard block
 block discarded – undo
1441 1441
 	 * @access public
1442 1442
 	 * @static
1443 1443
 	 *
1444
+	 * @param string $feature
1444 1445
 	 * @return bool True if plan supports feature, false if not
1445 1446
 	 */
1446 1447
 	public static function active_plan_supports( $feature ) {
@@ -1977,6 +1978,7 @@  discard block
 block discarded – undo
1977 1978
 	 * @param int $user_id
1978 1979
 	 * @param string $token
1979 1980
 	 * return bool
1981
+	 * @param boolean $is_master_user
1980 1982
 	 */
1981 1983
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
1982 1984
 		// not designed for concurrent updates
@@ -2371,6 +2373,7 @@  discard block
 block discarded – undo
2371 2373
 
2372 2374
 	/**
2373 2375
 	 * Like core's get_file_data implementation, but caches the result.
2376
+	 * @param string $file
2374 2377
 	 */
2375 2378
 	public static function get_file_data( $file, $headers ) {
2376 2379
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -2416,7 +2419,7 @@  discard block
 block discarded – undo
2416 2419
 	 *
2417 2420
 	 * @param string $tag Tag as it appears in each module heading.
2418 2421
 	 *
2419
-	 * @return mixed
2422
+	 * @return string
2420 2423
 	 */
2421 2424
 	public static function translate_module_tag( $tag ) {
2422 2425
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2519,8 +2522,8 @@  discard block
 block discarded – undo
2519 2522
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2520 2523
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2521 2524
 	 *
2522
-	 * @param $string
2523
-	 * @return mixed
2525
+	 * @param string $string
2526
+	 * @return string|null
2524 2527
 	 */
2525 2528
 	public static function alias_directories( $string ) {
2526 2529
 		// ABSPATH has a trailing slash.
@@ -2794,6 +2797,9 @@  discard block
 block discarded – undo
2794 2797
 		return self::update_active_modules( $new );
2795 2798
 	}
2796 2799
 
2800
+	/**
2801
+	 * @param string $module
2802
+	 */
2797 2803
 	public static function enable_module_configurable( $module ) {
2798 2804
 		$module = Jetpack::get_module_slug( $module );
2799 2805
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -2804,21 +2810,33 @@  discard block
 block discarded – undo
2804 2810
 		return Jetpack::admin_url( array( 'page' => 'jetpack', 'configure' => $module ) );
2805 2811
 	}
2806 2812
 
2813
+	/**
2814
+	 * @param string $module
2815
+	 */
2807 2816
 	public static function module_configuration_load( $module, $method ) {
2808 2817
 		$module = Jetpack::get_module_slug( $module );
2809 2818
 		add_action( 'jetpack_module_configuration_load_' . $module, $method );
2810 2819
 	}
2811 2820
 
2821
+	/**
2822
+	 * @param string $module
2823
+	 */
2812 2824
 	public static function module_configuration_head( $module, $method ) {
2813 2825
 		$module = Jetpack::get_module_slug( $module );
2814 2826
 		add_action( 'jetpack_module_configuration_head_' . $module, $method );
2815 2827
 	}
2816 2828
 
2829
+	/**
2830
+	 * @param string $module
2831
+	 */
2817 2832
 	public static function module_configuration_screen( $module, $method ) {
2818 2833
 		$module = Jetpack::get_module_slug( $module );
2819 2834
 		add_action( 'jetpack_module_configuration_screen_' . $module, $method );
2820 2835
 	}
2821 2836
 
2837
+	/**
2838
+	 * @param string $module
2839
+	 */
2822 2840
 	public static function module_configuration_activation_screen( $module, $method ) {
2823 2841
 		$module = Jetpack::get_module_slug( $module );
2824 2842
 		add_action( 'display_activate_module_setting_' . $module, $method );
@@ -2826,6 +2844,9 @@  discard block
 block discarded – undo
2826 2844
 
2827 2845
 /* Installation */
2828 2846
 
2847
+	/**
2848
+	 * @param string $message
2849
+	 */
2829 2850
 	public static function bail_on_activation( $message, $deactivate = true ) {
2830 2851
 ?>
2831 2852
 <!doctype html>
@@ -3526,7 +3547,7 @@  discard block
 block discarded – undo
3526 3547
 	 * Add help to the Jetpack page
3527 3548
 	 *
3528 3549
 	 * @since Jetpack (1.2.3)
3529
-	 * @return false if not the Jetpack page
3550
+	 * @return false|null if not the Jetpack page
3530 3551
 	 */
3531 3552
 	function admin_help() {
3532 3553
 		$current_screen = get_current_screen();
@@ -4577,6 +4598,7 @@  discard block
 block discarded – undo
4577 4598
 	/**
4578 4599
 	 * Returns the requested Jetpack API URL
4579 4600
 	 *
4601
+	 * @param string $relative_url
4580 4602
 	 * @return string
4581 4603
 	 */
4582 4604
 	public static function api_url( $relative_url ) {
@@ -4735,7 +4757,8 @@  discard block
 block discarded – undo
4735 4757
 	 * Note these tokens are unique per call, NOT static per site for connecting.
4736 4758
 	 *
4737 4759
 	 * @since 2.6
4738
-	 * @return array
4760
+	 * @param string $action
4761
+	 * @return boolean
4739 4762
 	 */
4740 4763
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
4741 4764
 		if ( ! $user_id ) {
@@ -5220,7 +5243,6 @@  discard block
 block discarded – undo
5220 5243
 	/**
5221 5244
 	 * Report authentication status to the WP REST API.
5222 5245
 	 *
5223
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5224 5246
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5225 5247
 	 */
5226 5248
 	public function wp_rest_authentication_errors( $value ) {
@@ -5230,6 +5252,10 @@  discard block
 block discarded – undo
5230 5252
 		return $this->rest_authentication_status;
5231 5253
 	}
5232 5254
 
5255
+	/**
5256
+	 * @param integer $timestamp
5257
+	 * @param string $nonce
5258
+	 */
5233 5259
 	function add_nonce( $timestamp, $nonce ) {
5234 5260
 		global $wpdb;
5235 5261
 		static $nonces_used_this_request = array();
@@ -5375,6 +5401,7 @@  discard block
 block discarded – undo
5375 5401
 	 * @param string $key
5376 5402
 	 * @param string $value
5377 5403
 	 * @param bool $restate private
5404
+	 * @return string
5378 5405
 	 */
5379 5406
 	public static function state( $key = null, $value = null, $restate = false ) {
5380 5407
 		static $state = array();
@@ -5431,6 +5458,9 @@  discard block
 block discarded – undo
5431 5458
 		Jetpack::state( null, null, true );
5432 5459
 	}
5433 5460
 
5461
+	/**
5462
+	 * @param string $file
5463
+	 */
5434 5464
 	public static function check_privacy( $file ) {
5435 5465
 		static $is_site_publicly_accessible = null;
5436 5466
 
@@ -6027,9 +6057,7 @@  discard block
 block discarded – undo
6027 6057
 	 *
6028 6058
 	 * Attached to `style_loader_src` filter.
6029 6059
 	 *
6030
-	 * @param string $tag The tag that would link to the external asset.
6031 6060
 	 * @param string $handle The registered handle of the script in question.
6032
-	 * @param string $href The url of the asset in question.
6033 6061
 	 */
6034 6062
 	public static function set_suffix_on_min( $src, $handle ) {
6035 6063
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6198,8 +6226,8 @@  discard block
 block discarded – undo
6198 6226
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6199 6227
 	 *  - Domain root relative URLs `/feh.png`
6200 6228
 	 *
6201
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6202
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6229
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6230
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6203 6231
 	 *
6204 6232
 	 * @return mixed|string
6205 6233
 	 */
@@ -6490,7 +6518,7 @@  discard block
 block discarded – undo
6490 6518
 	 *
6491 6519
 	 * @param string $option_name
6492 6520
 	 *
6493
-	 * @return bool
6521
+	 * @return false|null
6494 6522
 	 */
6495 6523
 	public static function jumpstart_has_updated_module_option( $option_name = '' ) {
6496 6524
 		// Bail if Jump Start has already been dismissed
@@ -6578,7 +6606,6 @@  discard block
 block discarded – undo
6578 6606
 	}
6579 6607
 
6580 6608
 	/**
6581
-	 * @param mixed $result Value for the user's option
6582 6609
 	 * @return mixed
6583 6610
 	 */
6584 6611
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.
json-endpoints/class.wpcom-json-api-update-term-endpoint.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -115,6 +115,11 @@  discard block
 block discarded – undo
115 115
 	}
116 116
 
117 117
 	// /sites/%s/taxonomies/%s/terms/new -> $blog_id, $taxonomy
118
+
119
+	/**
120
+	 * @param string $path
121
+	 * @param string $taxonomy
122
+	 */
118 123
 	function new_term( $path, $blog_id, $taxonomy ) {
119 124
 		$args = $this->query_args();
120 125
 		$input = $this->input();
@@ -160,6 +165,12 @@  discard block
 block discarded – undo
160 165
 	}
161 166
 
162 167
 	// /sites/%s/taxonomies/%s/terms/slug:%s -> $blog_id, $taxonomy, $slug
168
+
169
+	/**
170
+	 * @param string $path
171
+	 * @param string $slug
172
+	 * @param string $taxonomy
173
+	 */
163 174
 	function update_term( $path, $blog_id, $slug, $taxonomy ) {
164 175
 		$tax = get_taxonomy( $taxonomy );
165 176
 		if ( ! current_user_can( $tax->cap->edit_terms ) ) {
@@ -208,6 +219,12 @@  discard block
 block discarded – undo
208 219
 	}
209 220
 
210 221
 	// /sites/%s/taxonomies/%s/terms/slug:%s/delete -> $blog_id, $taxonomy, $slug
222
+
223
+	/**
224
+	 * @param string $path
225
+	 * @param string $slug
226
+	 * @param string $taxonomy
227
+	 */
211 228
 	function delete_term( $path, $blog_id, $slug, $taxonomy ) {
212 229
 		$term = get_term_by( 'slug', $slug, $taxonomy );
213 230
 		$tax = get_taxonomy( $taxonomy );
Please login to merge, or discard this patch.
sync/class.jetpack-sync-module-callables.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -171,6 +171,9 @@
 block discarded – undo
171 171
 		update_option( 'jetpack_plugin_api_action_links', $plugins_action_links );
172 172
 	}
173 173
 
174
+	/**
175
+	 * @param integer $checksum
176
+	 */
174 177
 	public function should_send_callable( $callable_checksums, $name, $checksum ) {
175 178
 		$idc_override_callables = array(
176 179
 			'main_network_site',
Please login to merge, or discard this patch.
class.jetpack-options.php 1 patch
Doc Comments   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 	 *
17 17
 	 * @param string $type The type of option to return. Defaults to 'compact'.
18 18
 	 *
19
-	 * @return array
19
+	 * @return string[]
20 20
 	 */
21 21
 	public static function get_option_names( $type = 'compact' ) {
22 22
 		switch ( $type ) {
@@ -199,6 +199,9 @@  discard block
 block discarded – undo
199 199
 		return $value;
200 200
 	}
201 201
 
202
+	/**
203
+	 * @param string $name
204
+	 */
202 205
 	private static function update_grouped_option( $group, $name, $value ) {
203 206
 		$options = get_option( self::$grouped_options[ $group ] );
204 207
 		if ( ! is_array( $options ) ) {
@@ -301,6 +304,9 @@  discard block
 block discarded – undo
301 304
 		return $result;
302 305
 	}
303 306
 
307
+	/**
308
+	 * @param string $name
309
+	 */
304 310
 	private static function get_grouped_option( $group, $name, $default ) {
305 311
 		$options = get_option( self::$grouped_options[ $group ] );
306 312
 		if ( is_array( $options ) && isset( $options[ $name ] ) ) {
@@ -420,7 +426,7 @@  discard block
 block discarded – undo
420 426
 	 * This function checks for a constant that, if present, will disable direct DB queries Jetpack uses to manage certain options and force Jetpack to always use Options API instead.
421 427
 	 * Options can be selectively managed via a blacklist by filtering option names via the jetpack_disabled_raw_option filter.
422 428
 	 *
423
-	 * @param $name Option name
429
+	 * @param string $name Option name
424 430
 	 *
425 431
 	 * @return bool
426 432
 	 */
@@ -445,7 +451,7 @@  discard block
 block discarded – undo
445 451
 	 * @since 5.4.0
446 452
 	 *
447 453
 	 * @param boolean $strip_unsafe_options If true, and by default, will strip out options necessary for the connection to WordPress.com.
448
-	 * @return array An array of all options managed via the Jetpack_Options class.
454
+	 * @return string[] An array of all options managed via the Jetpack_Options class.
449 455
 	 */
450 456
 	static function get_all_jetpack_options( $strip_unsafe_options = true ) {
451 457
 		$jetpack_options            = self::get_option_names();
@@ -488,7 +494,7 @@  discard block
 block discarded – undo
488 494
 	 *
489 495
 	 * @since 5.4.0
490 496
 	 *
491
-	 * @return array
497
+	 * @return string[]
492 498
 	 */
493 499
 	static function get_all_wp_options() {
494 500
 		// A manual build of the wp options
Please login to merge, or discard this patch.