Completed
Push — feature/amp-google-analytics ( 346ada...a54724 )
by
unknown
06:39
created
class.json-api-endpoints.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1540,6 +1540,7 @@  discard block
 block discarded – undo
1540 1540
 	 * timezone set in the options table for the blog or the GMT offset.
1541 1541
 	 *
1542 1542
 	 * @param datetime string $date_string Date to parse.
1543
+	 * @param string $date_string
1543 1544
 	 *
1544 1545
 	 * @return array( $local_time_string, $gmt_time_string )
1545 1546
 	 */
@@ -1649,6 +1650,10 @@  discard block
 block discarded – undo
1649 1650
 		do_action( 'restapi_theme_init' );
1650 1651
 	}
1651 1652
 
1653
+	/**
1654
+	 * @param string $from_hook
1655
+	 * @param string $to_hook
1656
+	 */
1652 1657
 	function copy_hooks( $from_hook, $to_hook, $base_paths ) {
1653 1658
 		global $wp_filter;
1654 1659
 		foreach ( $wp_filter as $hook => $actions ) {
@@ -2073,7 +2078,7 @@  discard block
 block discarded – undo
2073 2078
 	 * Get an array of all valid AMP origins for a blog's siteurl.
2074 2079
 	 *
2075 2080
 	 * @param string $siteurl Origin url of the API request.
2076
-	 * @return array
2081
+	 * @return string[]
2077 2082
 	 */
2078 2083
 	public function get_amp_cache_origins( $siteurl ) {
2079 2084
 		$host = parse_url( $siteurl, PHP_URL_HOST );
Please login to merge, or discard this patch.
class.jetpack-gutenberg.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
 	 * Only enqueue block assets when needed.
519 519
 	 *
520 520
 	 * @param string $type Slug of the block.
521
-	 * @param array  $script_dependencies Script dependencies. Will be merged with automatically
521
+	 * @param string[]  $script_dependencies Script dependencies. Will be merged with automatically
522 522
 	 *                                    detected script dependencies from the webpack build.
523 523
 	 *
524 524
 	 * @return void
@@ -866,10 +866,10 @@  discard block
 block discarded – undo
866 866
 	 * @since 8.3.0
867 867
 	 *
868 868
 	 * @param string $url      URL saved as an attribute in block.
869
-	 * @param array  $allowed  Array of allowed hosts for that block, or regexes to check against.
869
+	 * @param string[]  $allowed  Array of allowed hosts for that block, or regexes to check against.
870 870
 	 * @param bool   $is_regex Array of regexes matching the URL that could be used in block.
871 871
 	 *
872
-	 * @return bool|string
872
+	 * @return false|string
873 873
 	 */
874 874
 	public static function validate_block_embed_url( $url, $allowed = array(), $is_regex = false ) {
875 875
 		if (
Please login to merge, or discard this patch.
_inc/lib/class-jetpack-podcast-helper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 	 * Loads an RSS feed using `fetch_feed`.
59 59
 	 *
60 60
 	 * @param string $feed        The RSS feed URL to load.
61
-	 * @return SimplePie|WP_Error The RSS object or error.
61
+	 * @return string The RSS object or error.
62 62
 	 */
63 63
 	private static function load_feed( $feed ) {
64 64
 		$rss = fetch_feed( esc_url_raw( $feed ) );
Please login to merge, or discard this patch.
packages/sync/src/modules/class-full-sync-immediately.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 	 *
150 150
 	 * @access public
151 151
 	 *
152
-	 * @return int|null
152
+	 * @return null|double
153 153
 	 */
154 154
 	public function get_sync_progress_percentage() {
155 155
 		if ( ! $this->is_started() || $this->is_finished() ) {
Please login to merge, or discard this patch.
packages/sync/src/modules/class-full-sync.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 	 *
412 412
 	 * @access public
413 413
 	 *
414
-	 * @return int|null
414
+	 * @return null|double
415 415
 	 */
416 416
 	public function get_sync_progress_percentage() {
417 417
 		if ( ! $this->is_started() || $this->is_finished() ) {
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
 	 * @access private
626 626
 	 *
627 627
 	 * @param string $name    Name of the option.
628
-	 * @param mixed  $default Default value of the option.
628
+	 * @param integer  $default Default value of the option.
629 629
 	 * @return mixed Option value.
630 630
 	 */
631 631
 	private function get_status_option( $name, $default = null ) {
Please login to merge, or discard this patch.
sal/class.json-api-site-jetpack.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -165,6 +165,9 @@  discard block
 block discarded – undo
165 165
 		return $this->get_atomic_cloud_site_option( 'launch-status' );
166 166
 	}
167 167
 
168
+	/**
169
+	 * @param string $option
170
+	 */
168 171
 	function get_atomic_cloud_site_option( $option ) {
169 172
 		if ( ! jetpack_is_atomic_site() ) {
170 173
 			return false;
@@ -233,6 +236,9 @@  discard block
 block discarded – undo
233 236
 		return false;
234 237
 	}
235 238
 
239
+	/**
240
+	 * @param string $role
241
+	 */
236 242
 	function current_user_can( $role ) {
237 243
 		return current_user_can( $role );
238 244
 	}
Please login to merge, or discard this patch.
extensions/blocks/podcast-player/podcast-player.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
  * @param string $name           Template name, available in `./templates` folder.
236 236
  * @param array  $template_props Template properties. Optional.
237 237
  * @param bool   $print          Render template. True as default.
238
- * @return false|string          HTML markup or false.
238
+ * @return string|null          HTML markup or false.
239 239
  */
240 240
 function render( $name, $template_props = array(), $print = true ) {
241 241
 	if ( ! strpos( $name, '.php' ) ) {
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +35 added lines, -18 removed lines patch added patch discarded remove patch
@@ -905,7 +905,7 @@  discard block
 block discarded – undo
905 905
 	 * This is ported over from the manage module, which has been deprecated and baked in here.
906 906
 	 *
907 907
 	 * @param $domains
908
-	 * @return array
908
+	 * @return string[]
909 909
 	 */
910 910
 	function allow_wpcom_domain( $domains ) {
911 911
 		if ( empty( $domains ) ) {
@@ -1331,7 +1331,7 @@  discard block
 block discarded – undo
1331 1331
 	/**
1332 1332
 	 * Does the network allow admins to add new users.
1333 1333
 	 *
1334
-	 * @return boolian
1334
+	 * @return boolean
1335 1335
 	 */
1336 1336
 	static function network_add_new_users( $option = null ) {
1337 1337
 		return (bool) get_site_option( 'add_new_users' );
@@ -1441,7 +1441,7 @@  discard block
 block discarded – undo
1441 1441
 	 *
1442 1442
 	 * @param  bool $option
1443 1443
 	 *
1444
-	 * @return boolean
1444
+	 * @return string
1445 1445
 	 */
1446 1446
 	public function is_main_network_option( $option ) {
1447 1447
 		// return '1' or ''
@@ -1452,7 +1452,7 @@  discard block
 block discarded – undo
1452 1452
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1453 1453
 	 *
1454 1454
 	 * @param  string $option
1455
-	 * @return boolean
1455
+	 * @return string
1456 1456
 	 */
1457 1457
 	public function is_multisite( $option ) {
1458 1458
 		return (string) (bool) is_multisite();
@@ -1515,7 +1515,7 @@  discard block
 block discarded – undo
1515 1515
 	/**
1516 1516
 	 * Returns true if the site has file write access false otherwise.
1517 1517
 	 *
1518
-	 * @return string ( '1' | '0' )
1518
+	 * @return integer ( '1' | '0' )
1519 1519
 	 **/
1520 1520
 	public static function file_system_write_access() {
1521 1521
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -2233,7 +2233,7 @@  discard block
 block discarded – undo
2233 2233
 	 * @param int    $user_id The user id.
2234 2234
 	 * @param string $token The user token.
2235 2235
 	 * @param bool   $is_master_user Whether the user is the master user.
2236
-	 * @return bool
2236
+	 * @return boolean|null
2237 2237
 	 */
2238 2238
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2239 2239
 		_deprecated_function( __METHOD__, 'jetpack-8.0', 'Automattic\\Jetpack\\Connection\\Utils::update_user_token' );
@@ -2677,7 +2677,7 @@  discard block
 block discarded – undo
2677 2677
 	 *
2678 2678
 	 * @param string $tag Tag as it appears in each module heading.
2679 2679
 	 *
2680
-	 * @return mixed
2680
+	 * @return string
2681 2681
 	 */
2682 2682
 	public static function translate_module_tag( $tag ) {
2683 2683
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2849,8 +2849,8 @@  discard block
 block discarded – undo
2849 2849
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2850 2850
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2851 2851
 	 *
2852
-	 * @param $string
2853
-	 * @return mixed
2852
+	 * @param string $string
2853
+	 * @return string|null
2854 2854
 	 */
2855 2855
 	public static function alias_directories( $string ) {
2856 2856
 		// ABSPATH has a trailing slash.
@@ -2861,6 +2861,10 @@  discard block
 block discarded – undo
2861 2861
 		return $string;
2862 2862
 	}
2863 2863
 
2864
+	/**
2865
+	 * @param boolean $redirect
2866
+	 * @param boolean $send_state_messages
2867
+	 */
2864 2868
 	public static function activate_default_modules(
2865 2869
 		$min_version = false,
2866 2870
 		$max_version = false,
@@ -3144,6 +3148,9 @@  discard block
 block discarded – undo
3144 3148
 		return self::update_active_modules( $new );
3145 3149
 	}
3146 3150
 
3151
+	/**
3152
+	 * @param string $module
3153
+	 */
3147 3154
 	public static function enable_module_configurable( $module ) {
3148 3155
 		$module = self::get_module_slug( $module );
3149 3156
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -3172,6 +3179,10 @@  discard block
 block discarded – undo
3172 3179
 	}
3173 3180
 
3174 3181
 	/* Installation */
3182
+
3183
+	/**
3184
+	 * @param string $message
3185
+	 */
3175 3186
 	public static function bail_on_activation( $message, $deactivate = true ) {
3176 3187
 		?>
3177 3188
 <!doctype html>
@@ -3927,7 +3938,7 @@  discard block
 block discarded – undo
3927 3938
 	 * Add help to the Jetpack page
3928 3939
 	 *
3929 3940
 	 * @since Jetpack (1.2.3)
3930
-	 * @return false if not the Jetpack page
3941
+	 * @return false|null if not the Jetpack page
3931 3942
 	 */
3932 3943
 	function admin_help() {
3933 3944
 		$current_screen = get_current_screen();
@@ -4965,6 +4976,9 @@  discard block
 block discarded – undo
4965 4976
 		return $url;
4966 4977
 	}
4967 4978
 
4979
+	/**
4980
+	 * @param string $actionurl
4981
+	 */
4968 4982
 	public static function nonce_url_no_esc( $actionurl, $action = -1, $name = '_wpnonce' ) {
4969 4983
 		$actionurl = str_replace( '&amp;', '&', $actionurl );
4970 4984
 		return add_query_arg( $name, wp_create_nonce( $action ), $actionurl );
@@ -5267,7 +5281,7 @@  discard block
 block discarded – undo
5267 5281
 	 * @param String  $action  The action name.
5268 5282
 	 * @param Integer $user_id The user identifier.
5269 5283
 	 * @param Integer $exp     Expiration time in seconds.
5270
-	 * @return array
5284
+	 * @return boolean
5271 5285
 	 */
5272 5286
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
5273 5287
 		return self::connection()->generate_secrets( $action, $user_id, $exp );
@@ -5587,7 +5601,6 @@  discard block
 block discarded – undo
5587 5601
 	/**
5588 5602
 	 * Report authentication status to the WP REST API.
5589 5603
 	 *
5590
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5591 5604
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5592 5605
 	 */
5593 5606
 	public function wp_rest_authentication_errors( $value ) {
@@ -5714,6 +5727,7 @@  discard block
 block discarded – undo
5714 5727
 	 * @param string $key
5715 5728
 	 * @param string $value
5716 5729
 	 * @param bool   $restate private
5730
+	 * @return string
5717 5731
 	 */
5718 5732
 	public static function state( $key = null, $value = null, $restate = false ) {
5719 5733
 		static $state = array();
@@ -5774,6 +5788,9 @@  discard block
 block discarded – undo
5774 5788
 		self::state( null, null, true );
5775 5789
 	}
5776 5790
 
5791
+	/**
5792
+	 * @param string $file
5793
+	 */
5777 5794
 	public static function check_privacy( $file ) {
5778 5795
 		static $is_site_publicly_accessible = null;
5779 5796
 
@@ -5854,6 +5871,9 @@  discard block
 block discarded – undo
5854 5871
 		}
5855 5872
 	}
5856 5873
 
5874
+	/**
5875
+	 * @param string $url
5876
+	 */
5857 5877
 	public static function staticize_subdomain( $url ) {
5858 5878
 
5859 5879
 		// Extract hostname from URL
@@ -6371,9 +6391,7 @@  discard block
 block discarded – undo
6371 6391
 	 *
6372 6392
 	 * Attached to `style_loader_src` filter.
6373 6393
 	 *
6374
-	 * @param string $tag The tag that would link to the external asset.
6375 6394
 	 * @param string $handle The registered handle of the script in question.
6376
-	 * @param string $href The url of the asset in question.
6377 6395
 	 */
6378 6396
 	public static function set_suffix_on_min( $src, $handle ) {
6379 6397
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6580,8 +6598,8 @@  discard block
 block discarded – undo
6580 6598
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6581 6599
 	 *  - Domain root relative URLs `/feh.png`
6582 6600
 	 *
6583
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6584
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6601
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6602
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6585 6603
 	 *
6586 6604
 	 * @return mixed|string
6587 6605
 	 */
@@ -6842,7 +6860,7 @@  discard block
 block discarded – undo
6842 6860
 	/**
6843 6861
 	 * Stores and prints out domains to prefetch for page speed optimization.
6844 6862
 	 *
6845
-	 * @param mixed $new_urls
6863
+	 * @param string[] $new_urls
6846 6864
 	 */
6847 6865
 	public static function dns_prefetch( $new_urls = null ) {
6848 6866
 		static $prefetch_urls = array();
@@ -6899,7 +6917,6 @@  discard block
 block discarded – undo
6899 6917
 	}
6900 6918
 
6901 6919
 	/**
6902
-	 * @param mixed $result Value for the user's option
6903 6920
 	 * @return mixed
6904 6921
 	 */
6905 6922
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.
modules/sharedaddy/recaptcha.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 	/**
69 69
 	 * Get default config for this reCAPTCHA instance.
70 70
 	 *
71
-	 * @return array Default config
71
+	 * @return string Default config
72 72
 	 */
73 73
 	public function get_default_config() {
74 74
 		return array(
Please login to merge, or discard this patch.