Completed
Push — update/sync-users-enqueue-orde... ( d17611...0c48e3 )
by
unknown
29:40
created
json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -139,6 +139,9 @@
 block discarded – undo
139 139
 		}
140 140
 	}
141 141
 
142
+	/**
143
+	 * @param string $capability
144
+	 */
142 145
 	protected function current_user_can( $capability, $plugin = null ) {
143 146
 		global $wp_version;
144 147
 		if ( version_compare( $wp_version, '4.9-beta2' ) >= 0 ) {
Please login to merge, or discard this patch.
modules/google-analytics/classes/wp-google-analytics-options.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -15,6 +15,10 @@
 block discarded – undo
15 15
 }
16 16
 
17 17
 class Jetpack_Google_Analytics_Options {
18
+
19
+	/**
20
+	 * @param string $option_name
21
+	 */
18 22
 	public static function get_option( $option_name, $default = false ) {
19 23
 		$o = get_option( 'jetpack_wga' );
20 24
 		return isset( $o[ $option_name ] ) ? $o[ $option_name ] : $default;
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +45 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1104,7 +1104,7 @@  discard block
 block discarded – undo
1104 1104
 	}
1105 1105
 	/**
1106 1106
 	 * Does the network allow admins to add new users.
1107
-	 * @return boolian
1107
+	 * @return boolean
1108 1108
 	 */
1109 1109
 	static function network_add_new_users( $option = null ) {
1110 1110
 		return (bool) get_site_option( 'add_new_users' );
@@ -1209,7 +1209,7 @@  discard block
 block discarded – undo
1209 1209
 	 * database which could be set to anything as opposed to what this function returns.
1210 1210
 	 * @param  bool  $option
1211 1211
 	 *
1212
-	 * @return boolean
1212
+	 * @return string
1213 1213
 	 */
1214 1214
 	public function is_main_network_option( $option ) {
1215 1215
 		// return '1' or ''
@@ -1220,7 +1220,7 @@  discard block
 block discarded – undo
1220 1220
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1221 1221
 	 *
1222 1222
 	 * @param  string  $option
1223
-	 * @return boolean
1223
+	 * @return string
1224 1224
 	 */
1225 1225
 	public function is_multisite( $option ) {
1226 1226
 		return (string) (bool) is_multisite();
@@ -1282,7 +1282,7 @@  discard block
 block discarded – undo
1282 1282
 
1283 1283
 	/**
1284 1284
 	 * Returns true if the site has file write access false otherwise.
1285
-	 * @return string ( '1' | '0' )
1285
+	 * @return integer ( '1' | '0' )
1286 1286
 	 **/
1287 1287
 	public static function file_system_write_access() {
1288 1288
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -1523,6 +1523,7 @@  discard block
 block discarded – undo
1523 1523
 	 * @access public
1524 1524
 	 * @static
1525 1525
 	 *
1526
+	 * @param string $feature
1526 1527
 	 * @return bool True if plan supports feature, false if not
1527 1528
 	 */
1528 1529
 	public static function active_plan_supports( $feature ) {
@@ -2063,6 +2064,7 @@  discard block
 block discarded – undo
2063 2064
 	 * @param int $user_id
2064 2065
 	 * @param string $token
2065 2066
 	 * return bool
2067
+	 * @param boolean $is_master_user
2066 2068
 	 */
2067 2069
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2068 2070
 		// not designed for concurrent updates
@@ -2457,6 +2459,7 @@  discard block
 block discarded – undo
2457 2459
 
2458 2460
 	/**
2459 2461
 	 * Like core's get_file_data implementation, but caches the result.
2462
+	 * @param string $file
2460 2463
 	 */
2461 2464
 	public static function get_file_data( $file, $headers ) {
2462 2465
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -2493,7 +2496,7 @@  discard block
 block discarded – undo
2493 2496
 	 *
2494 2497
 	 * @param string $tag Tag as it appears in each module heading.
2495 2498
 	 *
2496
-	 * @return mixed
2499
+	 * @return string
2497 2500
 	 */
2498 2501
 	public static function translate_module_tag( $tag ) {
2499 2502
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2596,8 +2599,8 @@  discard block
 block discarded – undo
2596 2599
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2597 2600
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2598 2601
 	 *
2599
-	 * @param $string
2600
-	 * @return mixed
2602
+	 * @param string $string
2603
+	 * @return string|null
2601 2604
 	 */
2602 2605
 	public static function alias_directories( $string ) {
2603 2606
 		// ABSPATH has a trailing slash.
@@ -2871,6 +2874,9 @@  discard block
 block discarded – undo
2871 2874
 		return self::update_active_modules( $new );
2872 2875
 	}
2873 2876
 
2877
+	/**
2878
+	 * @param string $module
2879
+	 */
2874 2880
 	public static function enable_module_configurable( $module ) {
2875 2881
 		$module = Jetpack::get_module_slug( $module );
2876 2882
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -2881,21 +2887,33 @@  discard block
 block discarded – undo
2881 2887
 		return Jetpack::admin_url( array( 'page' => 'jetpack', 'configure' => $module ) );
2882 2888
 	}
2883 2889
 
2890
+	/**
2891
+	 * @param string $module
2892
+	 */
2884 2893
 	public static function module_configuration_load( $module, $method ) {
2885 2894
 		$module = Jetpack::get_module_slug( $module );
2886 2895
 		add_action( 'jetpack_module_configuration_load_' . $module, $method );
2887 2896
 	}
2888 2897
 
2898
+	/**
2899
+	 * @param string $module
2900
+	 */
2889 2901
 	public static function module_configuration_head( $module, $method ) {
2890 2902
 		$module = Jetpack::get_module_slug( $module );
2891 2903
 		add_action( 'jetpack_module_configuration_head_' . $module, $method );
2892 2904
 	}
2893 2905
 
2906
+	/**
2907
+	 * @param string $module
2908
+	 */
2894 2909
 	public static function module_configuration_screen( $module, $method ) {
2895 2910
 		$module = Jetpack::get_module_slug( $module );
2896 2911
 		add_action( 'jetpack_module_configuration_screen_' . $module, $method );
2897 2912
 	}
2898 2913
 
2914
+	/**
2915
+	 * @param string $module
2916
+	 */
2899 2917
 	public static function module_configuration_activation_screen( $module, $method ) {
2900 2918
 		$module = Jetpack::get_module_slug( $module );
2901 2919
 		add_action( 'display_activate_module_setting_' . $module, $method );
@@ -2903,6 +2921,9 @@  discard block
 block discarded – undo
2903 2921
 
2904 2922
 /* Installation */
2905 2923
 
2924
+	/**
2925
+	 * @param string $message
2926
+	 */
2906 2927
 	public static function bail_on_activation( $message, $deactivate = true ) {
2907 2928
 ?>
2908 2929
 <!doctype html>
@@ -3656,7 +3677,7 @@  discard block
 block discarded – undo
3656 3677
 	 * Add help to the Jetpack page
3657 3678
 	 *
3658 3679
 	 * @since Jetpack (1.2.3)
3659
-	 * @return false if not the Jetpack page
3680
+	 * @return false|null if not the Jetpack page
3660 3681
 	 */
3661 3682
 	function admin_help() {
3662 3683
 		$current_screen = get_current_screen();
@@ -4740,6 +4761,7 @@  discard block
 block discarded – undo
4740 4761
 	/**
4741 4762
 	 * Returns the requested Jetpack API URL
4742 4763
 	 *
4764
+	 * @param string $relative_url
4743 4765
 	 * @return string
4744 4766
 	 */
4745 4767
 	public static function api_url( $relative_url ) {
@@ -4931,7 +4953,8 @@  discard block
 block discarded – undo
4931 4953
 	 * Note these tokens are unique per call, NOT static per site for connecting.
4932 4954
 	 *
4933 4955
 	 * @since 2.6
4934
-	 * @return array
4956
+	 * @param string $action
4957
+	 * @return boolean
4935 4958
 	 */
4936 4959
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
4937 4960
 		if ( ! $user_id ) {
@@ -5476,7 +5499,6 @@  discard block
 block discarded – undo
5476 5499
 	/**
5477 5500
 	 * Report authentication status to the WP REST API.
5478 5501
 	 *
5479
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5480 5502
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5481 5503
 	 */
5482 5504
 	public function wp_rest_authentication_errors( $value ) {
@@ -5486,6 +5508,10 @@  discard block
 block discarded – undo
5486 5508
 		return $this->rest_authentication_status;
5487 5509
 	}
5488 5510
 
5511
+	/**
5512
+	 * @param integer $timestamp
5513
+	 * @param string $nonce
5514
+	 */
5489 5515
 	function add_nonce( $timestamp, $nonce ) {
5490 5516
 		global $wpdb;
5491 5517
 		static $nonces_used_this_request = array();
@@ -5631,6 +5657,7 @@  discard block
 block discarded – undo
5631 5657
 	 * @param string $key
5632 5658
 	 * @param string $value
5633 5659
 	 * @param bool $restate private
5660
+	 * @return string
5634 5661
 	 */
5635 5662
 	public static function state( $key = null, $value = null, $restate = false ) {
5636 5663
 		static $state = array();
@@ -5687,6 +5714,9 @@  discard block
 block discarded – undo
5687 5714
 		Jetpack::state( null, null, true );
5688 5715
 	}
5689 5716
 
5717
+	/**
5718
+	 * @param string $file
5719
+	 */
5690 5720
 	public static function check_privacy( $file ) {
5691 5721
 		static $is_site_publicly_accessible = null;
5692 5722
 
@@ -6295,9 +6325,7 @@  discard block
 block discarded – undo
6295 6325
 	 *
6296 6326
 	 * Attached to `style_loader_src` filter.
6297 6327
 	 *
6298
-	 * @param string $tag The tag that would link to the external asset.
6299 6328
 	 * @param string $handle The registered handle of the script in question.
6300
-	 * @param string $href The url of the asset in question.
6301 6329
 	 */
6302 6330
 	public static function set_suffix_on_min( $src, $handle ) {
6303 6331
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6466,8 +6494,8 @@  discard block
 block discarded – undo
6466 6494
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6467 6495
 	 *  - Domain root relative URLs `/feh.png`
6468 6496
 	 *
6469
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6470
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6497
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6498
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6471 6499
 	 *
6472 6500
 	 * @return mixed|string
6473 6501
 	 */
@@ -6696,7 +6724,7 @@  discard block
 block discarded – undo
6696 6724
 	 *
6697 6725
 	 * @param string $option_name
6698 6726
 	 *
6699
-	 * @return bool
6727
+	 * @return false|null
6700 6728
 	 */
6701 6729
 	public static function jumpstart_has_updated_module_option( $option_name = '' ) {
6702 6730
 		// Bail if Jump Start has already been dismissed
@@ -6737,7 +6765,7 @@  discard block
 block discarded – undo
6737 6765
 	/**
6738 6766
 	 * Stores and prints out domains to prefetch for page speed optimization.
6739 6767
 	 *
6740
-	 * @param mixed $new_urls
6768
+	 * @param string[] $new_urls
6741 6769
 	 */
6742 6770
 	public static function dns_prefetch( $new_urls = null ) {
6743 6771
 		static $prefetch_urls = array();
@@ -6783,7 +6811,6 @@  discard block
 block discarded – undo
6783 6811
 	}
6784 6812
 
6785 6813
 	/**
6786
-	 * @param mixed $result Value for the user's option
6787 6814
 	 * @return mixed
6788 6815
 	 */
6789 6816
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
@@ -6927,7 +6954,7 @@  discard block
 block discarded – undo
6927 6954
 	/**
6928 6955
 	 * Checks if one or more function names is in debug_backtrace
6929 6956
 	 *
6930
-	 * @param $names Mixed string name of function or array of string names of functions
6957
+	 * @param string $names Mixed string name of function or array of string names of functions
6931 6958
 	 *
6932 6959
 	 * @return bool
6933 6960
 	 */
Please login to merge, or discard this patch.