Completed
Push — fix/pro-status-loading ( 8d8a02...c56bdc )
by
unknown
178:17 queued 166:37
created
_inc/lib/icalendar-reader.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -699,8 +699,7 @@  discard block
 block discarded – undo
699 699
 	 * Render the events
700 700
 	 *
701 701
 	 * @param string $url (default: '')
702
-	 * @param string $context (default: 'widget') or 'shortcode'
703
-	 * @return mixed bool|string false on failure, rendered HTML string on success.
702
+	 * @return false|string bool|string false on failure, rendered HTML string on success.
704 703
 	 */
705 704
 	public function render( $url = '', $args = array() ) {
706 705
 
@@ -857,8 +856,7 @@  discard block
 block discarded – undo
857 856
  * Wrapper function for iCalendarReader->render()
858 857
  *
859 858
  * @param string $url (default: '')
860
- * @param string $context (default: 'widget') or 'shortcode'
861
- * @return mixed bool|string false on failure, rendered HTML string on success.
859
+ * @return false|string bool|string false on failure, rendered HTML string on success.
862 860
  */
863 861
 function icalendar_render_events( $url = '', $args = array() ) {
864 862
 	$ical = new iCalendarReader();
Please login to merge, or discard this patch.
_inc/lib/tracks/client.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,6 @@
 block discarded – undo
107 107
 /**
108 108
  * Record an event in Tracks - this is the preferred way to record events from PHP.
109 109
  *
110
- * @param mixed $identity username, user_id, or WP_user object
111 110
  * @param string $event_name The name of the event
112 111
  * @param array $properties Custom properties to send with the event
113 112
  * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred
Please login to merge, or discard this patch.
modules/custom-css/custom-css.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1404,7 +1404,7 @@
 block discarded – undo
1404 1404
 	/**
1405 1405
 	 * Migration routine for moving safecss from wp_options to wp_posts to support revisions
1406 1406
 	 *
1407
-	 * @return void
1407
+	 * @return false|null
1408 1408
 	 */
1409 1409
 	static function upgrade() {
1410 1410
 		$css = get_option( 'safecss' );
Please login to merge, or discard this patch.
sync/class.jetpack-sync-listener.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -107,6 +107,9 @@
 block discarded – undo
107 107
 		$this->enqueue_action( current_filter(), func_get_args(), $this->sync_queue );
108 108
 	}
109 109
 
110
+	/**
111
+	 * @param Jetpack_Sync_Queue $queue
112
+	 */
110 113
 	function enqueue_action( $current_filter, $args, $queue ) {
111 114
 
112 115
 		/**
Please login to merge, or discard this patch.
sync/class.jetpack-sync-sender.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@  discard block
 block discarded – undo
50 50
 		return (double) get_option( self::NEXT_SYNC_TIME_OPTION_NAME, 0 );
51 51
 	}
52 52
 
53
+	/**
54
+	 * @param integer $time
55
+	 */
53 56
 	public function set_next_sync_time( $time ) {
54 57
 		return update_option( self::NEXT_SYNC_TIME_OPTION_NAME, $time, true );
55 58
 	}
@@ -81,6 +84,9 @@  discard block
 block discarded – undo
81 84
 		return $full_sync_result || $sync_result;
82 85
 	}
83 86
 
87
+	/**
88
+	 * @param Jetpack_Sync_Queue $queue
89
+	 */
84 90
 	public function do_sync_for_queue( $queue ) {
85 91
 
86 92
 		do_action( 'jetpack_sync_before_send_queue_' . $queue->id );
Please login to merge, or discard this patch.
sync/class.jetpack-sync-settings.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@
 block discarded – undo
60 60
 		self::set_importing( null );
61 61
 	}
62 62
 
63
+	/**
64
+	 * @param boolean|null $is_importing
65
+	 */
63 66
 	static function set_importing( $is_importing ) {
64 67
 		// set to NULL to revert to WP_IMPORTING, the standard behaviour
65 68
 		self::$is_importing = $is_importing;
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +47 added lines, -14 removed lines patch added patch discarded remove patch
@@ -918,7 +918,7 @@  discard block
 block discarded – undo
918 918
 	}
919 919
 	/**
920 920
 	 * Does the network allow admins to add new users.
921
-	 * @return boolian
921
+	 * @return boolean
922 922
 	 */
923 923
 	static function network_add_new_users( $option = null ) {
924 924
 		return (bool) get_site_option( 'add_new_users' );
@@ -966,7 +966,7 @@  discard block
 block discarded – undo
966 966
 	 * database which could be set to anything as opposed to what this function returns.
967 967
 	 * @param  bool  $option
968 968
 	 *
969
-	 * @return boolean
969
+	 * @return string
970 970
 	 */
971 971
 	public function is_main_network_option( $option ) {
972 972
 		// return '1' or ''
@@ -977,7 +977,7 @@  discard block
 block discarded – undo
977 977
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
978 978
 	 *
979 979
 	 * @param  string  $option
980
-	 * @return boolean
980
+	 * @return string
981 981
 	 */
982 982
 	public function is_multisite( $option ) {
983 983
 		return (string) (bool) is_multisite();
@@ -1038,7 +1038,7 @@  discard block
 block discarded – undo
1038 1038
 
1039 1039
 	/**
1040 1040
 	 * Returns true if the site has file write access false otherwise.
1041
-	 * @return string ( '1' | '0' )
1041
+	 * @return integer ( '1' | '0' )
1042 1042
 	 **/
1043 1043
 	public static function file_system_write_access() {
1044 1044
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -1600,7 +1600,7 @@  discard block
 block discarded – undo
1600 1600
 	 * Returns the requested option.  Looks in jetpack_options or jetpack_$name as appropriate.
1601 1601
  	 *
1602 1602
 	 * @param string $name    Option name
1603
-	 * @param mixed  $default (optional)
1603
+	 * @param boolean  $default (optional)
1604 1604
 	 */
1605 1605
 	public static function get_option( $name, $default = false ) {
1606 1606
 		return Jetpack_Options::get_option( $name, $default );
@@ -1610,6 +1610,7 @@  discard block
 block discarded – undo
1610 1610
 	* Stores two secrets and a timestamp so WordPress.com can make a request back and verify an action
1611 1611
 	* Does some extra verification so urls (such as those to public-api, register, etc) can't just be crafted
1612 1612
 	* $name must be a registered option name.
1613
+	* @param string $name
1613 1614
 	*/
1614 1615
 	public static function create_nonce( $name ) {
1615 1616
 		$secret = wp_generate_password( 32, false ) . ':' . wp_generate_password( 32, false ) . ':' . ( time() + 600 );
@@ -1667,6 +1668,7 @@  discard block
 block discarded – undo
1667 1668
 	 * @param int $user_id
1668 1669
 	 * @param string $token
1669 1670
 	 * return bool
1671
+	 * @param boolean $is_master_user
1670 1672
 	 */
1671 1673
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
1672 1674
 		// not designed for concurrent updates
@@ -2061,6 +2063,7 @@  discard block
 block discarded – undo
2061 2063
 
2062 2064
 	/**
2063 2065
 	 * Like core's get_file_data implementation, but caches the result.
2066
+	 * @param string $file
2064 2067
 	 */
2065 2068
 	public static function get_file_data( $file, $headers ) {
2066 2069
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -2089,7 +2092,7 @@  discard block
 block discarded – undo
2089 2092
 	 *
2090 2093
 	 * @param string $tag Tag as it appears in each module heading.
2091 2094
 	 *
2092
-	 * @return mixed
2095
+	 * @return string
2093 2096
 	 */
2094 2097
 	public static function translate_module_tag( $tag ) {
2095 2098
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2389,6 +2392,9 @@  discard block
 block discarded – undo
2389 2392
 		_deprecated_function( __METHOD__, 'jeptack-4.2' );
2390 2393
 	}
2391 2394
 
2395
+	/**
2396
+	 * @return string
2397
+	 */
2392 2398
 	public static function deactivate_module( $module ) {
2393 2399
 		/**
2394 2400
 		 * Fires when a module is deactivated.
@@ -2417,6 +2423,9 @@  discard block
 block discarded – undo
2417 2423
 		return self::update_active_modules( $new );
2418 2424
 	}
2419 2425
 
2426
+	/**
2427
+	 * @param string $module
2428
+	 */
2420 2429
 	public static function enable_module_configurable( $module ) {
2421 2430
 		$module = Jetpack::get_module_slug( $module );
2422 2431
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -2427,21 +2436,33 @@  discard block
 block discarded – undo
2427 2436
 		return Jetpack::admin_url( array( 'page' => 'jetpack', 'configure' => $module ) );
2428 2437
 	}
2429 2438
 
2439
+	/**
2440
+	 * @param string $module
2441
+	 */
2430 2442
 	public static function module_configuration_load( $module, $method ) {
2431 2443
 		$module = Jetpack::get_module_slug( $module );
2432 2444
 		add_action( 'jetpack_module_configuration_load_' . $module, $method );
2433 2445
 	}
2434 2446
 
2447
+	/**
2448
+	 * @param string $module
2449
+	 */
2435 2450
 	public static function module_configuration_head( $module, $method ) {
2436 2451
 		$module = Jetpack::get_module_slug( $module );
2437 2452
 		add_action( 'jetpack_module_configuration_head_' . $module, $method );
2438 2453
 	}
2439 2454
 
2455
+	/**
2456
+	 * @param string $module
2457
+	 */
2440 2458
 	public static function module_configuration_screen( $module, $method ) {
2441 2459
 		$module = Jetpack::get_module_slug( $module );
2442 2460
 		add_action( 'jetpack_module_configuration_screen_' . $module, $method );
2443 2461
 	}
2444 2462
 
2463
+	/**
2464
+	 * @param string $module
2465
+	 */
2445 2466
 	public static function module_configuration_activation_screen( $module, $method ) {
2446 2467
 		$module = Jetpack::get_module_slug( $module );
2447 2468
 		add_action( 'display_activate_module_setting_' . $module, $method );
@@ -2449,6 +2470,9 @@  discard block
 block discarded – undo
2449 2470
 
2450 2471
 /* Installation */
2451 2472
 
2473
+	/**
2474
+	 * @param string $message
2475
+	 */
2452 2476
 	public static function bail_on_activation( $message, $deactivate = true ) {
2453 2477
 ?>
2454 2478
 <!doctype html>
@@ -3069,7 +3093,7 @@  discard block
 block discarded – undo
3069 3093
 	 * Add help to the Jetpack page
3070 3094
 	 *
3071 3095
 	 * @since Jetpack (1.2.3)
3072
-	 * @return false if not the Jetpack page
3096
+	 * @return false|null if not the Jetpack page
3073 3097
 	 */
3074 3098
 	function admin_help() {
3075 3099
 		$current_screen = get_current_screen();
@@ -4108,6 +4132,7 @@  discard block
 block discarded – undo
4108 4132
 	/**
4109 4133
 	 * Returns the requested Jetpack API URL
4110 4134
 	 *
4135
+	 * @param string $relative_url
4111 4136
 	 * @return string
4112 4137
 	 */
4113 4138
 	public static function api_url( $relative_url ) {
@@ -4252,7 +4277,8 @@  discard block
 block discarded – undo
4252 4277
 	 * Note these tokens are unique per call, NOT static per site for connecting.
4253 4278
 	 *
4254 4279
 	 * @since 2.6
4255
-	 * @return array
4280
+	 * @param string $action
4281
+	 * @return string
4256 4282
 	 */
4257 4283
 	public function generate_secrets( $action, $exp = 600 ) {
4258 4284
 	    $secret = wp_generate_password( 32, false ) // secret_1
@@ -4578,6 +4604,10 @@  discard block
 block discarded – undo
4578 4604
 		return new WP_User( $token_details['user_id'] );
4579 4605
 	}
4580 4606
 
4607
+	/**
4608
+	 * @param integer $timestamp
4609
+	 * @param string $nonce
4610
+	 */
4581 4611
 	function add_nonce( $timestamp, $nonce ) {
4582 4612
 		global $wpdb;
4583 4613
 		static $nonces_used_this_request = array();
@@ -4727,6 +4757,7 @@  discard block
 block discarded – undo
4727 4757
 	 * @param string $key
4728 4758
 	 * @param string $value
4729 4759
 	 * @param bool $restate private
4760
+	 * @return string
4730 4761
 	 */
4731 4762
 	public static function state( $key = null, $value = null, $restate = false ) {
4732 4763
 		static $state = array();
@@ -4783,6 +4814,9 @@  discard block
 block discarded – undo
4783 4814
 		Jetpack::state( null, null, true );
4784 4815
 	}
4785 4816
 
4817
+	/**
4818
+	 * @param string $file
4819
+	 */
4786 4820
 	public static function check_privacy( $file ) {
4787 4821
 		static $is_site_publicly_accessible = null;
4788 4822
 
@@ -5110,7 +5144,7 @@  discard block
 block discarded – undo
5110 5144
 	/**
5111 5145
 	 * Pings the WordPress.com Mirror Site for the specified options.
5112 5146
 	 *
5113
-	 * @param string|array $option_names The option names to request from the WordPress.com Mirror Site
5147
+	 * @param string[] $option_names The option names to request from the WordPress.com Mirror Site
5114 5148
 	 *
5115 5149
 	 * @return array An associative array of the option values as stored in the WordPress.com Mirror Site
5116 5150
 	 */
@@ -5134,7 +5168,7 @@  discard block
 block discarded – undo
5134 5168
 	/**
5135 5169
 	 * Fetch the filtered array of options that we should compare to determine an identity crisis.
5136 5170
 	 *
5137
-	 * @return array An array of options to check.
5171
+	 * @return string[] An array of options to check.
5138 5172
 	 */
5139 5173
 	public static function identity_crisis_options_to_check() {
5140 5174
 		return array(
@@ -5678,8 +5712,8 @@  discard block
 block discarded – undo
5678 5712
 	 *  - Absolute URLs             `http://domain.com/feh.png`
5679 5713
 	 *  - Domain root relative URLs `/feh.png`
5680 5714
 	 *
5681
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
5682
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
5715
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
5716
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
5683 5717
 	 *
5684 5718
 	 * @return mixed|string
5685 5719
 	 */
@@ -5988,7 +6022,7 @@  discard block
 block discarded – undo
5988 6022
 	 *
5989 6023
 	 * @param string $option_name
5990 6024
 	 *
5991
-	 * @return bool
6025
+	 * @return false|null
5992 6026
 	 */
5993 6027
 	public static function jumpstart_has_updated_module_option( $option_name = '' ) {
5994 6028
 		// Bail if Jump Start has already been dismissed
@@ -6079,7 +6113,6 @@  discard block
 block discarded – undo
6079 6113
 	}
6080 6114
 
6081 6115
 	/**
6082
-	 * @param mixed $result Value for the user's option
6083 6116
 	 * @return mixed
6084 6117
 	 */
6085 6118
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.
sync/class.jetpack-sync-module-full-sync.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -227,6 +227,9 @@  discard block
 block discarded – undo
227 227
 		$listener->get_full_sync_queue()->reset();
228 228
 	}
229 229
 
230
+	/**
231
+	 * @param integer $default
232
+	 */
230 233
 	private function get_status_option( $option, $default = null ) {
231 234
 		$prefix = self::STATUS_OPTION_PREFIX;
232 235
 
@@ -258,6 +261,9 @@  discard block
 block discarded – undo
258 261
 		$this->queue_items_added( 1 );
259 262
 	}
260 263
 
264
+	/**
265
+	 * @param integer $item_count
266
+	 */
261 267
 	public function queue_items_added( $item_count ) {
262 268
 		$this->items_added_since_last_pause += $item_count;
263 269
 
Please login to merge, or discard this patch.
modules/sso/class.jetpack-sso-helpers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1283,7 +1283,7 @@
 block discarded – undo
1283 1283
 	 * Returns an array of stock and custom taxonomy query vars
1284 1284
 	 *
1285 1285
 	 * @global $wp_taxonomies
1286
-	 * @return array
1286
+	 * @return string[]
1287 1287
 	 */
1288 1288
 	function get_taxonomy_vars() {
1289 1289
 		global $wp_taxonomies;
Please login to merge, or discard this patch.