Completed
Push — jetpack-fusion-mock-files ( e51750...3b1561 )
by
unknown
13:31
created
class.jetpack.php 1 patch
Doc Comments   +44 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1067,7 +1067,7 @@  discard block
 block discarded – undo
1067 1067
 	}
1068 1068
 	/**
1069 1069
 	 * Does the network allow admins to add new users.
1070
-	 * @return boolian
1070
+	 * @return boolean
1071 1071
 	 */
1072 1072
 	static function network_add_new_users( $option = null ) {
1073 1073
 		return (bool) get_site_option( 'add_new_users' );
@@ -1172,7 +1172,7 @@  discard block
 block discarded – undo
1172 1172
 	 * database which could be set to anything as opposed to what this function returns.
1173 1173
 	 * @param  bool  $option
1174 1174
 	 *
1175
-	 * @return boolean
1175
+	 * @return string
1176 1176
 	 */
1177 1177
 	public function is_main_network_option( $option ) {
1178 1178
 		// return '1' or ''
@@ -1183,7 +1183,7 @@  discard block
 block discarded – undo
1183 1183
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1184 1184
 	 *
1185 1185
 	 * @param  string  $option
1186
-	 * @return boolean
1186
+	 * @return string
1187 1187
 	 */
1188 1188
 	public function is_multisite( $option ) {
1189 1189
 		return (string) (bool) is_multisite();
@@ -1245,7 +1245,7 @@  discard block
 block discarded – undo
1245 1245
 
1246 1246
 	/**
1247 1247
 	 * Returns true if the site has file write access false otherwise.
1248
-	 * @return string ( '1' | '0' )
1248
+	 * @return integer ( '1' | '0' )
1249 1249
 	 **/
1250 1250
 	public static function file_system_write_access() {
1251 1251
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -1485,6 +1485,7 @@  discard block
 block discarded – undo
1485 1485
 	 * @access public
1486 1486
 	 * @static
1487 1487
 	 *
1488
+	 * @param string $feature
1488 1489
 	 * @return bool True if plan supports feature, false if not
1489 1490
 	 */
1490 1491
 	public static function active_plan_supports( $feature ) {
@@ -2025,6 +2026,7 @@  discard block
 block discarded – undo
2025 2026
 	 * @param int $user_id
2026 2027
 	 * @param string $token
2027 2028
 	 * return bool
2029
+	 * @param boolean $is_master_user
2028 2030
 	 */
2029 2031
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2030 2032
 		// not designed for concurrent updates
@@ -2419,6 +2421,7 @@  discard block
 block discarded – undo
2419 2421
 
2420 2422
 	/**
2421 2423
 	 * Like core's get_file_data implementation, but caches the result.
2424
+	 * @param string $file
2422 2425
 	 */
2423 2426
 	public static function get_file_data( $file, $headers ) {
2424 2427
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -2455,7 +2458,7 @@  discard block
 block discarded – undo
2455 2458
 	 *
2456 2459
 	 * @param string $tag Tag as it appears in each module heading.
2457 2460
 	 *
2458
-	 * @return mixed
2461
+	 * @return string
2459 2462
 	 */
2460 2463
 	public static function translate_module_tag( $tag ) {
2461 2464
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2558,8 +2561,8 @@  discard block
 block discarded – undo
2558 2561
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2559 2562
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2560 2563
 	 *
2561
-	 * @param $string
2562
-	 * @return mixed
2564
+	 * @param string $string
2565
+	 * @return string|null
2563 2566
 	 */
2564 2567
 	public static function alias_directories( $string ) {
2565 2568
 		// ABSPATH has a trailing slash.
@@ -2833,6 +2836,9 @@  discard block
 block discarded – undo
2833 2836
 		return self::update_active_modules( $new );
2834 2837
 	}
2835 2838
 
2839
+	/**
2840
+	 * @param string $module
2841
+	 */
2836 2842
 	public static function enable_module_configurable( $module ) {
2837 2843
 		$module = Jetpack::get_module_slug( $module );
2838 2844
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -2843,21 +2849,33 @@  discard block
 block discarded – undo
2843 2849
 		return Jetpack::admin_url( array( 'page' => 'jetpack', 'configure' => $module ) );
2844 2850
 	}
2845 2851
 
2852
+	/**
2853
+	 * @param string $module
2854
+	 */
2846 2855
 	public static function module_configuration_load( $module, $method ) {
2847 2856
 		$module = Jetpack::get_module_slug( $module );
2848 2857
 		add_action( 'jetpack_module_configuration_load_' . $module, $method );
2849 2858
 	}
2850 2859
 
2860
+	/**
2861
+	 * @param string $module
2862
+	 */
2851 2863
 	public static function module_configuration_head( $module, $method ) {
2852 2864
 		$module = Jetpack::get_module_slug( $module );
2853 2865
 		add_action( 'jetpack_module_configuration_head_' . $module, $method );
2854 2866
 	}
2855 2867
 
2868
+	/**
2869
+	 * @param string $module
2870
+	 */
2856 2871
 	public static function module_configuration_screen( $module, $method ) {
2857 2872
 		$module = Jetpack::get_module_slug( $module );
2858 2873
 		add_action( 'jetpack_module_configuration_screen_' . $module, $method );
2859 2874
 	}
2860 2875
 
2876
+	/**
2877
+	 * @param string $module
2878
+	 */
2861 2879
 	public static function module_configuration_activation_screen( $module, $method ) {
2862 2880
 		$module = Jetpack::get_module_slug( $module );
2863 2881
 		add_action( 'display_activate_module_setting_' . $module, $method );
@@ -2865,6 +2883,9 @@  discard block
 block discarded – undo
2865 2883
 
2866 2884
 /* Installation */
2867 2885
 
2886
+	/**
2887
+	 * @param string $message
2888
+	 */
2868 2889
 	public static function bail_on_activation( $message, $deactivate = true ) {
2869 2890
 ?>
2870 2891
 <!doctype html>
@@ -3618,7 +3639,7 @@  discard block
 block discarded – undo
3618 3639
 	 * Add help to the Jetpack page
3619 3640
 	 *
3620 3641
 	 * @since Jetpack (1.2.3)
3621
-	 * @return false if not the Jetpack page
3642
+	 * @return false|null if not the Jetpack page
3622 3643
 	 */
3623 3644
 	function admin_help() {
3624 3645
 		$current_screen = get_current_screen();
@@ -4690,6 +4711,7 @@  discard block
 block discarded – undo
4690 4711
 	/**
4691 4712
 	 * Returns the requested Jetpack API URL
4692 4713
 	 *
4714
+	 * @param string $relative_url
4693 4715
 	 * @return string
4694 4716
 	 */
4695 4717
 	public static function api_url( $relative_url ) {
@@ -4881,7 +4903,8 @@  discard block
 block discarded – undo
4881 4903
 	 * Note these tokens are unique per call, NOT static per site for connecting.
4882 4904
 	 *
4883 4905
 	 * @since 2.6
4884
-	 * @return array
4906
+	 * @param string $action
4907
+	 * @return boolean
4885 4908
 	 */
4886 4909
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
4887 4910
 		if ( ! $user_id ) {
@@ -5426,7 +5449,6 @@  discard block
 block discarded – undo
5426 5449
 	/**
5427 5450
 	 * Report authentication status to the WP REST API.
5428 5451
 	 *
5429
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5430 5452
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5431 5453
 	 */
5432 5454
 	public function wp_rest_authentication_errors( $value ) {
@@ -5436,6 +5458,10 @@  discard block
 block discarded – undo
5436 5458
 		return $this->rest_authentication_status;
5437 5459
 	}
5438 5460
 
5461
+	/**
5462
+	 * @param integer $timestamp
5463
+	 * @param string $nonce
5464
+	 */
5439 5465
 	function add_nonce( $timestamp, $nonce ) {
5440 5466
 		global $wpdb;
5441 5467
 		static $nonces_used_this_request = array();
@@ -5581,6 +5607,7 @@  discard block
 block discarded – undo
5581 5607
 	 * @param string $key
5582 5608
 	 * @param string $value
5583 5609
 	 * @param bool $restate private
5610
+	 * @return string
5584 5611
 	 */
5585 5612
 	public static function state( $key = null, $value = null, $restate = false ) {
5586 5613
 		static $state = array();
@@ -5637,6 +5664,9 @@  discard block
 block discarded – undo
5637 5664
 		Jetpack::state( null, null, true );
5638 5665
 	}
5639 5666
 
5667
+	/**
5668
+	 * @param string $file
5669
+	 */
5640 5670
 	public static function check_privacy( $file ) {
5641 5671
 		static $is_site_publicly_accessible = null;
5642 5672
 
@@ -6245,9 +6275,7 @@  discard block
 block discarded – undo
6245 6275
 	 *
6246 6276
 	 * Attached to `style_loader_src` filter.
6247 6277
 	 *
6248
-	 * @param string $tag The tag that would link to the external asset.
6249 6278
 	 * @param string $handle The registered handle of the script in question.
6250
-	 * @param string $href The url of the asset in question.
6251 6279
 	 */
6252 6280
 	public static function set_suffix_on_min( $src, $handle ) {
6253 6281
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6416,8 +6444,8 @@  discard block
 block discarded – undo
6416 6444
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6417 6445
 	 *  - Domain root relative URLs `/feh.png`
6418 6446
 	 *
6419
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6420
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6447
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6448
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6421 6449
 	 *
6422 6450
 	 * @return mixed|string
6423 6451
 	 */
@@ -6646,7 +6674,7 @@  discard block
 block discarded – undo
6646 6674
 	 *
6647 6675
 	 * @param string $option_name
6648 6676
 	 *
6649
-	 * @return bool
6677
+	 * @return false|null
6650 6678
 	 */
6651 6679
 	public static function jumpstart_has_updated_module_option( $option_name = '' ) {
6652 6680
 		// Bail if Jump Start has already been dismissed
@@ -6687,7 +6715,7 @@  discard block
 block discarded – undo
6687 6715
 	/**
6688 6716
 	 * Stores and prints out domains to prefetch for page speed optimization.
6689 6717
 	 *
6690
-	 * @param mixed $new_urls
6718
+	 * @param string[] $new_urls
6691 6719
 	 */
6692 6720
 	public static function dns_prefetch( $new_urls = null ) {
6693 6721
 		static $prefetch_urls = array();
@@ -6733,7 +6761,6 @@  discard block
 block discarded – undo
6733 6761
 	}
6734 6762
 
6735 6763
 	/**
6736
-	 * @param mixed $result Value for the user's option
6737 6764
 	 * @return mixed
6738 6765
 	 */
6739 6766
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
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.
modules/protect/blocked-login-page.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -326,6 +326,9 @@
 block discarded – undo
326 326
 		return $contents;
327 327
 	}
328 328
 
329
+	/**
330
+	 * @param string $message
331
+	 */
329 332
 	function display_page( $title, $message, $back_button = false, $recovery_form = false ) {
330 333
 
331 334
 		if ( ! headers_sent() ) {
Please login to merge, or discard this patch.