Completed
Push — update/webpack-base-on-calypso... ( 845aa4...6ad68e )
by Bernhard
25:52 queued 18:01
created
modules/memberships/class-jetpack-memberships.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
 	 * @param array $post_types - other post types.
173 173
 	 *
174 174
 	 * @see hook 'rest_api_allowed_post_types'
175
-	 * @return array
175
+	 * @return string[]
176 176
 	 */
177 177
 	public function allow_rest_api_types( $post_types ) {
178 178
 		$post_types[] = self::$post_type_plan;
Please login to merge, or discard this patch.
_inc/lib/debugger/class-jetpack-cxn-test-base.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
 	 * @param string $type  Test type, async or direct. Optional, direct all tests.
200 200
 	 * @param string $group Testing group to check status of. Optional, default all tests.
201 201
 	 *
202
-	 * @return true|array True if all tests pass. Array of failed tests.
202
+	 * @return boolean True if all tests pass. Array of failed tests.
203 203
 	 */
204 204
 	public function pass( $type = 'all', $group = 'all' ) {
205 205
 		$results = $this->raw_results( $type, $group );
Please login to merge, or discard this patch.
class.jetpack-gutenberg.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -416,7 +416,7 @@
 block discarded – undo
416 416
 	 * Only enqueue block assets when needed.
417 417
 	 *
418 418
 	 * @param string $type Slug of the block.
419
-	 * @param array  $script_dependencies Script dependencies. Will be merged with automatically
419
+	 * @param string[]  $script_dependencies Script dependencies. Will be merged with automatically
420 420
 	 *                                    detected script dependencies from the webpack build.
421 421
 	 *
422 422
 	 * @return void
Please login to merge, or discard this patch.
modules/carousel/jetpack-carousel.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -129,6 +129,9 @@  discard block
 block discarded – undo
129 129
 		return apply_filters( 'jp_carousel_load_for_images_linked_to_file', false );
130 130
 	}
131 131
 
132
+	/**
133
+	 * @param string $version
134
+	 */
132 135
 	function asset_version( $version ) {
133 136
 		/**
134 137
 		 * Filter the version string used when enqueuing Carousel assets.
@@ -511,6 +514,9 @@  discard block
 block discarded – undo
511 514
 		return $attr;
512 515
 	}
513 516
 
517
+	/**
518
+	 * @param string $html
519
+	 */
514 520
 	function add_data_to_container( $html ) {
515 521
 		global $post;
516 522
 		if (
@@ -757,6 +763,9 @@  discard block
 block discarded – undo
757 763
 		return ( 1 == $value ) ? 1 : 0;
758 764
 	}
759 765
 
766
+	/**
767
+	 * @param string $name
768
+	 */
760 769
 	function settings_checkbox( $name, $label_text, $extra_text = '', $default_to_checked = true ) {
761 770
 		if ( empty( $name ) ) {
762 771
 			return;
@@ -772,6 +781,9 @@  discard block
 block discarded – undo
772 781
 		echo '</fieldset>';
773 782
 	}
774 783
 
784
+	/**
785
+	 * @param string $name
786
+	 */
775 787
 	function settings_select( $name, $values, $extra_text = '' ) {
776 788
 		if ( empty( $name ) || ! is_array( $values ) || empty( $values ) ) {
777 789
 			return;
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +36 added lines, -16 removed lines patch added patch discarded remove patch
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
 	 * This is ported over from the manage module, which has been deprecated and baked in here.
717 717
 	 *
718 718
 	 * @param $domains
719
-	 * @return array
719
+	 * @return string[]
720 720
 	 */
721 721
 	function allow_wpcom_domain( $domains ) {
722 722
 		if ( empty( $domains ) ) {
@@ -1236,7 +1236,7 @@  discard block
 block discarded – undo
1236 1236
 	}
1237 1237
 	/**
1238 1238
 	 * Does the network allow admins to add new users.
1239
-	 * @return boolian
1239
+	 * @return boolean
1240 1240
 	 */
1241 1241
 	static function network_add_new_users( $option = null ) {
1242 1242
 		return (bool) get_site_option( 'add_new_users' );
@@ -1341,7 +1341,7 @@  discard block
 block discarded – undo
1341 1341
 	 * database which could be set to anything as opposed to what this function returns.
1342 1342
 	 * @param  bool  $option
1343 1343
 	 *
1344
-	 * @return boolean
1344
+	 * @return string
1345 1345
 	 */
1346 1346
 	public function is_main_network_option( $option ) {
1347 1347
 		// return '1' or ''
@@ -1352,7 +1352,7 @@  discard block
 block discarded – undo
1352 1352
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1353 1353
 	 *
1354 1354
 	 * @param  string  $option
1355
-	 * @return boolean
1355
+	 * @return string
1356 1356
 	 */
1357 1357
 	public function is_multisite( $option ) {
1358 1358
 		return (string) (bool) is_multisite();
@@ -1414,7 +1414,7 @@  discard block
 block discarded – undo
1414 1414
 
1415 1415
 	/**
1416 1416
 	 * Returns true if the site has file write access false otherwise.
1417
-	 * @return string ( '1' | '0' )
1417
+	 * @return integer ( '1' | '0' )
1418 1418
 	 **/
1419 1419
 	public static function file_system_write_access() {
1420 1420
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -2145,6 +2145,7 @@  discard block
 block discarded – undo
2145 2145
 	 * @param int $user_id
2146 2146
 	 * @param string $token
2147 2147
 	 * return bool
2148
+	 * @param boolean $is_master_user
2148 2149
 	 */
2149 2150
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2150 2151
 		// not designed for concurrent updates
@@ -2547,6 +2548,7 @@  discard block
 block discarded – undo
2547 2548
 
2548 2549
 	/**
2549 2550
 	 * Like core's get_file_data implementation, but caches the result.
2551
+	 * @param string $file
2550 2552
 	 */
2551 2553
 	public static function get_file_data( $file, $headers ) {
2552 2554
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -2583,7 +2585,7 @@  discard block
 block discarded – undo
2583 2585
 	 *
2584 2586
 	 * @param string $tag Tag as it appears in each module heading.
2585 2587
 	 *
2586
-	 * @return mixed
2588
+	 * @return string
2587 2589
 	 */
2588 2590
 	public static function translate_module_tag( $tag ) {
2589 2591
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2755,8 +2757,8 @@  discard block
 block discarded – undo
2755 2757
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2756 2758
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2757 2759
 	 *
2758
-	 * @param $string
2759
-	 * @return mixed
2760
+	 * @param string $string
2761
+	 * @return string|null
2760 2762
 	 */
2761 2763
 	public static function alias_directories( $string ) {
2762 2764
 		// ABSPATH has a trailing slash.
@@ -3036,6 +3038,9 @@  discard block
 block discarded – undo
3036 3038
 		return self::update_active_modules( $new );
3037 3039
 	}
3038 3040
 
3041
+	/**
3042
+	 * @param string $module
3043
+	 */
3039 3044
 	public static function enable_module_configurable( $module ) {
3040 3045
 		$module = Jetpack::get_module_slug( $module );
3041 3046
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -3064,6 +3069,9 @@  discard block
 block discarded – undo
3064 3069
 	}
3065 3070
 
3066 3071
 /* Installation */
3072
+	/**
3073
+	 * @param string $message
3074
+	 */
3067 3075
 	public static function bail_on_activation( $message, $deactivate = true ) {
3068 3076
 ?>
3069 3077
 <!doctype html>
@@ -3798,7 +3806,7 @@  discard block
 block discarded – undo
3798 3806
 	 * Add help to the Jetpack page
3799 3807
 	 *
3800 3808
 	 * @since Jetpack (1.2.3)
3801
-	 * @return false if not the Jetpack page
3809
+	 * @return false|null if not the Jetpack page
3802 3810
 	 */
3803 3811
 	function admin_help() {
3804 3812
 		$current_screen = get_current_screen();
@@ -4617,6 +4625,9 @@  discard block
 block discarded – undo
4617 4625
 		return $url;
4618 4626
 	}
4619 4627
 
4628
+	/**
4629
+	 * @return string
4630
+	 */
4620 4631
 	public static function nonce_url_no_esc( $actionurl, $action = -1, $name = '_wpnonce' ) {
4621 4632
 		$actionurl = str_replace( '&amp;', '&', $actionurl );
4622 4633
 		return add_query_arg( $name, wp_create_nonce( $action ), $actionurl );
@@ -4676,6 +4687,7 @@  discard block
 block discarded – undo
4676 4687
 	/**
4677 4688
 	 * Returns the requested Jetpack API URL
4678 4689
 	 *
4690
+	 * @param string $relative_url
4679 4691
 	 * @return string
4680 4692
 	 */
4681 4693
 	public static function api_url( $relative_url ) {
@@ -4867,6 +4879,7 @@  discard block
 block discarded – undo
4867 4879
 	 * Note these tokens are unique per call, NOT static per site for connecting.
4868 4880
 	 *
4869 4881
 	 * @since 2.6
4882
+	 * @param string $action
4870 4883
 	 * @return array
4871 4884
 	 */
4872 4885
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
@@ -5401,7 +5414,6 @@  discard block
 block discarded – undo
5401 5414
 	/**
5402 5415
 	 * Report authentication status to the WP REST API.
5403 5416
 	 *
5404
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5405 5417
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5406 5418
 	 */
5407 5419
 	public function wp_rest_authentication_errors( $value ) {
@@ -5411,6 +5423,10 @@  discard block
 block discarded – undo
5411 5423
 		return $this->rest_authentication_status;
5412 5424
 	}
5413 5425
 
5426
+	/**
5427
+	 * @param integer $timestamp
5428
+	 * @param string $nonce
5429
+	 */
5414 5430
 	function add_nonce( $timestamp, $nonce ) {
5415 5431
 		global $wpdb;
5416 5432
 		static $nonces_used_this_request = array();
@@ -5556,6 +5572,7 @@  discard block
 block discarded – undo
5556 5572
 	 * @param string $key
5557 5573
 	 * @param string $value
5558 5574
 	 * @param bool $restate private
5575
+	 * @return string
5559 5576
 	 */
5560 5577
 	public static function state( $key = null, $value = null, $restate = false ) {
5561 5578
 		static $state = array();
@@ -5612,6 +5629,9 @@  discard block
 block discarded – undo
5612 5629
 		Jetpack::state( null, null, true );
5613 5630
 	}
5614 5631
 
5632
+	/**
5633
+	 * @param string $file
5634
+	 */
5615 5635
 	public static function check_privacy( $file ) {
5616 5636
 		static $is_site_publicly_accessible = null;
5617 5637
 
@@ -5694,6 +5714,9 @@  discard block
 block discarded – undo
5694 5714
 		}
5695 5715
 	}
5696 5716
 
5717
+	/**
5718
+	 * @param string $url
5719
+	 */
5697 5720
 	public static function staticize_subdomain( $url ) {
5698 5721
 
5699 5722
 		// Extract hostname from URL
@@ -6244,9 +6267,7 @@  discard block
 block discarded – undo
6244 6267
 	 *
6245 6268
 	 * Attached to `style_loader_src` filter.
6246 6269
 	 *
6247
-	 * @param string $tag The tag that would link to the external asset.
6248 6270
 	 * @param string $handle The registered handle of the script in question.
6249
-	 * @param string $href The url of the asset in question.
6250 6271
 	 */
6251 6272
 	public static function set_suffix_on_min( $src, $handle ) {
6252 6273
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6429,8 +6450,8 @@  discard block
 block discarded – undo
6429 6450
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6430 6451
 	 *  - Domain root relative URLs `/feh.png`
6431 6452
 	 *
6432
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6433
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6453
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6454
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6434 6455
 	 *
6435 6456
 	 * @return mixed|string
6436 6457
 	 */
@@ -6673,7 +6694,7 @@  discard block
 block discarded – undo
6673 6694
 	/**
6674 6695
 	 * Stores and prints out domains to prefetch for page speed optimization.
6675 6696
 	 *
6676
-	 * @param mixed $new_urls
6697
+	 * @param string[] $new_urls
6677 6698
 	 */
6678 6699
 	public static function dns_prefetch( $new_urls = null ) {
6679 6700
 		static $prefetch_urls = array();
@@ -6728,7 +6749,6 @@  discard block
 block discarded – undo
6728 6749
 	}
6729 6750
 
6730 6751
 	/**
6731
-	 * @param mixed $result Value for the user's option
6732 6752
 	 * @return mixed
6733 6753
 	 */
6734 6754
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.
sync/class.jetpack-sync-wp-replicastore.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -447,6 +447,10 @@  discard block
 block discarded – undo
447 447
 	}
448 448
 
449 449
 	// functions
450
+
451
+	/**
452
+	 * @param string $name
453
+	 */
450 454
 	public function get_callable( $name ) {
451 455
 		$value = get_option( 'jetpack_' . $name );
452 456
 
@@ -738,6 +742,9 @@  discard block
 block discarded – undo
738 742
 		return $histogram;
739 743
 	}
740 744
 
745
+	/**
746
+	 * @param string|null $id_column
747
+	 */
741 748
 	private function table_checksum( $table, $columns, $id_column, $where_sql = '1=1', $min_id = null, $max_id = null, $strip_non_ascii = true, $salt = '' ) {
742 749
 		global $wpdb;
743 750
 
@@ -791,6 +798,9 @@  discard block
 block discarded – undo
791 798
 		return 'sum';
792 799
 	}
793 800
 
801
+	/**
802
+	 * @param string $where_sql
803
+	 */
794 804
 	private function meta_count( $table, $where_sql, $min_id, $max_id ) {
795 805
 		global $wpdb;
796 806
 
Please login to merge, or discard this patch.
modules/shortcodes/soundcloud.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 /**
143 143
  * Plugin options getter
144 144
  *
145
- * @param  string|array $option  Option name.
145
+ * @param  string $option  Option name.
146 146
  * @param  mixed        $default Default value.
147 147
  *
148 148
  * @return mixed                   Option value
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
  *
159 159
  * @param string $url Soundcloud URL.
160 160
  *
161
- * @return boolean
161
+ * @return integer
162 162
  */
163 163
 function soundcloud_url_has_tracklist( $url ) {
164 164
 	return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url );
Please login to merge, or discard this patch.