Completed
Push — branch-9.3-built ( 6cf92b...cf2e3a )
by Jeremy
126:39 queued 121:58
created
modules/shortcodes/instagram.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
  * @param string $url  URL of the content to be embedded.
146 146
  * @param array  $atts Shortcode attributes.
147 147
  *
148
- * @return array $params Array of parameters to be used in Instagram query.
148
+ * @return string $params Array of parameters to be used in Instagram query.
149 149
  */
150 150
 function jetpack_instagram_get_allowed_parameters( $url, $atts = array() ) {
151 151
 	global $content_width;
Please login to merge, or discard this patch.
extensions/blocks/story/story.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@
 block discarded – undo
217 217
  * Render a slide
218 218
  *
219 219
  * @param array $media  Media information.
220
- * @param array $index  Index of the slide, first slide will be displayed by default, others hidden.
220
+ * @param integer $index  Index of the slide, first slide will be displayed by default, others hidden.
221 221
  *
222 222
  * @return string
223 223
  */
Please login to merge, or discard this patch.
modules/widgets/milestone/class-milestone-widget.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -595,7 +595,7 @@
 block discarded – undo
595 595
 	 *
596 596
 	 * @param array $dirty Unsantized data for the widget.
597 597
 	 *
598
-	 * @return array Santized data.
598
+	 * @return integer Santized data.
599 599
 	 */
600 600
 	public function sanitize_instance( $dirty ) {
601 601
 		$now = (int) current_time( 'timestamp' ); // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested
Please login to merge, or discard this patch.
modules/widgets/rsslinks-widget.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -172,6 +172,9 @@
 block discarded – undo
172 172
 		echo '</select></label></p></div>';
173 173
 	}
174 174
 
175
+	/**
176
+	 * @param string $type
177
+	 */
175 178
 	function _rss_link( $type, $args ) {
176 179
 		if ( 'posts' == $type ) {
177 180
 			$type_text = __( 'Posts', 'jetpack' );
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +31 added lines, -16 removed lines patch added patch discarded remove patch
@@ -956,7 +956,7 @@  discard block
 block discarded – undo
956 956
 	 * This is ported over from the manage module, which has been deprecated and baked in here.
957 957
 	 *
958 958
 	 * @param $domains
959
-	 * @return array
959
+	 * @return string[]
960 960
 	 */
961 961
 	function allow_wpcom_domain( $domains ) {
962 962
 		if ( empty( $domains ) ) {
@@ -1324,7 +1324,7 @@  discard block
 block discarded – undo
1324 1324
 	/**
1325 1325
 	 * Does the network allow admins to add new users.
1326 1326
 	 *
1327
-	 * @return boolian
1327
+	 * @return boolean
1328 1328
 	 */
1329 1329
 	static function network_add_new_users( $option = null ) {
1330 1330
 		return (bool) get_site_option( 'add_new_users' );
@@ -1434,7 +1434,7 @@  discard block
 block discarded – undo
1434 1434
 	 *
1435 1435
 	 * @param  bool $option
1436 1436
 	 *
1437
-	 * @return boolean
1437
+	 * @return string
1438 1438
 	 */
1439 1439
 	public function is_main_network_option( $option ) {
1440 1440
 		// return '1' or ''
@@ -1445,7 +1445,7 @@  discard block
 block discarded – undo
1445 1445
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1446 1446
 	 *
1447 1447
 	 * @param  string $option
1448
-	 * @return boolean
1448
+	 * @return string
1449 1449
 	 */
1450 1450
 	public function is_multisite( $option ) {
1451 1451
 		return (string) (bool) is_multisite();
@@ -1508,7 +1508,7 @@  discard block
 block discarded – undo
1508 1508
 	/**
1509 1509
 	 * Returns true if the site has file write access false otherwise.
1510 1510
 	 *
1511
-	 * @return string ( '1' | '0' )
1511
+	 * @return integer ( '1' | '0' )
1512 1512
 	 **/
1513 1513
 	public static function file_system_write_access() {
1514 1514
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -2681,7 +2681,7 @@  discard block
 block discarded – undo
2681 2681
 	 *
2682 2682
 	 * @param string $tag Tag as it appears in each module heading.
2683 2683
 	 *
2684
-	 * @return mixed
2684
+	 * @return string
2685 2685
 	 */
2686 2686
 	public static function translate_module_tag( $tag ) {
2687 2687
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2796,8 +2796,8 @@  discard block
 block discarded – undo
2796 2796
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2797 2797
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2798 2798
 	 *
2799
-	 * @param $string
2800
-	 * @return mixed
2799
+	 * @param string $string
2800
+	 * @return string|null
2801 2801
 	 */
2802 2802
 	public static function alias_directories( $string ) {
2803 2803
 		// ABSPATH has a trailing slash.
@@ -2808,6 +2808,10 @@  discard block
 block discarded – undo
2808 2808
 		return $string;
2809 2809
 	}
2810 2810
 
2811
+	/**
2812
+	 * @param boolean $redirect
2813
+	 * @param boolean $send_state_messages
2814
+	 */
2811 2815
 	public static function activate_default_modules(
2812 2816
 		$min_version = false,
2813 2817
 		$max_version = false,
@@ -3073,6 +3077,9 @@  discard block
 block discarded – undo
3073 3077
 		_deprecated_function( __METHOD__, 'jetpack-4.2' );
3074 3078
 	}
3075 3079
 
3080
+	/**
3081
+	 * @return string
3082
+	 */
3076 3083
 	public static function deactivate_module( $module ) {
3077 3084
 		/**
3078 3085
 		 * Fires when a module is deactivated.
@@ -3091,6 +3098,9 @@  discard block
 block discarded – undo
3091 3098
 		return self::update_active_modules( $new );
3092 3099
 	}
3093 3100
 
3101
+	/**
3102
+	 * @param string $module
3103
+	 */
3094 3104
 	public static function enable_module_configurable( $module ) {
3095 3105
 		$module = self::get_module_slug( $module );
3096 3106
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -3119,6 +3129,10 @@  discard block
 block discarded – undo
3119 3129
 	}
3120 3130
 
3121 3131
 	/* Installation */
3132
+
3133
+	/**
3134
+	 * @param string $message
3135
+	 */
3122 3136
 	public static function bail_on_activation( $message, $deactivate = true ) {
3123 3137
 		?>
3124 3138
 <!doctype html>
@@ -3884,7 +3898,7 @@  discard block
 block discarded – undo
3884 3898
 	 * Add help to the Jetpack page
3885 3899
 	 *
3886 3900
 	 * @since Jetpack (1.2.3)
3887
-	 * @return false if not the Jetpack page
3901
+	 * @return false|null if not the Jetpack page
3888 3902
 	 */
3889 3903
 	function admin_help() {
3890 3904
 		$current_screen = get_current_screen();
@@ -4588,6 +4602,7 @@  discard block
 block discarded – undo
4588 4602
 
4589 4603
 	/**
4590 4604
 	 * Record a stat for later output.  This will only currently output in the admin_footer.
4605
+	 * @param string $group
4591 4606
 	 */
4592 4607
 	function stat( $group, $detail ) {
4593 4608
 		$this->initialize_stats();
@@ -5291,7 +5306,7 @@  discard block
 block discarded – undo
5291 5306
 	 * @param String  $action  The action name.
5292 5307
 	 * @param Integer $user_id The user identifier.
5293 5308
 	 * @param Integer $exp     Expiration time in seconds.
5294
-	 * @return array
5309
+	 * @return boolean
5295 5310
 	 */
5296 5311
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
5297 5312
 		return self::connection()->generate_secrets( $action, $user_id, $exp );
@@ -5547,7 +5562,6 @@  discard block
 block discarded – undo
5547 5562
 	 * @deprecated since 8.9.0
5548 5563
 	 * @see Automattic\Jetpack\Connection\Rest_Authentication::wp_rest_authentication_errors()
5549 5564
 	 *
5550
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5551 5565
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5552 5566
 	 */
5553 5567
 	public function wp_rest_authentication_errors( $value ) {
@@ -5640,6 +5654,7 @@  discard block
 block discarded – undo
5640 5654
 	 * @param string $key
5641 5655
 	 * @param string $value
5642 5656
 	 * @param bool   $restate private
5657
+	 * @return string
5643 5658
 	 */
5644 5659
 	public static function state( $key = null, $value = null, $restate = false ) {
5645 5660
 		static $state = array();
@@ -5721,6 +5736,9 @@  discard block
 block discarded – undo
5721 5736
 		return true;
5722 5737
 	}
5723 5738
 
5739
+	/**
5740
+	 * @param string $file
5741
+	 */
5724 5742
 	public static function check_privacy( $file ) {
5725 5743
 		static $is_site_publicly_accessible = null;
5726 5744
 
@@ -6293,9 +6311,7 @@  discard block
 block discarded – undo
6293 6311
 	 *
6294 6312
 	 * Attached to `style_loader_src` filter.
6295 6313
 	 *
6296
-	 * @param string $tag The tag that would link to the external asset.
6297 6314
 	 * @param string $handle The registered handle of the script in question.
6298
-	 * @param string $href The url of the asset in question.
6299 6315
 	 */
6300 6316
 	public static function set_suffix_on_min( $src, $handle ) {
6301 6317
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6671,8 +6687,8 @@  discard block
 block discarded – undo
6671 6687
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6672 6688
 	 *  - Domain root relative URLs `/feh.png`
6673 6689
 	 *
6674
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6675
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6690
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6691
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6676 6692
 	 *
6677 6693
 	 * @return mixed|string
6678 6694
 	 */
@@ -6971,7 +6987,6 @@  discard block
 block discarded – undo
6971 6987
 	}
6972 6988
 
6973 6989
 	/**
6974
-	 * @param mixed $result Value for the user's option
6975 6990
 	 * @return mixed
6976 6991
 	 */
6977 6992
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.