Completed
Pull Request — master (#8792)
by Shantanu
08:53
created
sync/class.jetpack-sync-module-users.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -94,6 +94,9 @@
 block discarded – undo
94 94
 		return $user;
95 95
 	}
96 96
 
97
+	/**
98
+	 * @param WP_User|null $user
99
+	 */
97 100
 	public function expand_user( $user ) {
98 101
 		if ( ! is_object( $user ) ) {
99 102
 			return null;
Please login to merge, or discard this patch.
_inc/lib/functions.wp-notify.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
 	 * should be notified, overriding the site setting.
202 202
 	 *
203 203
 	 * @param int $comment_id Comment ID.
204
-	 * @return true Always returns true.
204
+	 * @return boolean Always returns true.
205 205
 	 */
206 206
 	function wp_notify_moderator( $comment_id ) {
207 207
 		global $wpdb;
Please login to merge, or discard this patch.
_inc/lib/jetpack-wpes-query-builder/jetpack-wpes-query-parser.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -147,6 +147,10 @@
 block discarded – undo
147 147
 	 * Take a list of field prefixes and expand them for multi-lingual
148 148
 	 * with the provided boostings.
149 149
 	 */
150
+
151
+	/**
152
+	 * @param string[] $additional_fields
153
+	 */
150 154
 	public function merge_ml_fields( $fields2boosts, $additional_fields ) {
151 155
 		$flds = array();
152 156
 		foreach( $fields2boosts as $f => $b ) {
Please login to merge, or discard this patch.
_inc/lib/class.jetpack-search-performance-logger.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -58,6 +58,10 @@
 block discarded – undo
58 58
 		return $query->is_main_query() && $query->is_search();
59 59
 	}
60 60
 
61
+	/**
62
+	 * @param double $duration
63
+	 * @param boolean $was_jetpack_search
64
+	 */
61 65
 	private function record_query_time( $duration, $was_jetpack_search ) {
62 66
 		$this->stats[] = array( $was_jetpack_search, intval( $duration * 1000 ) );
63 67
 	}
Please login to merge, or discard this patch.
modules/search/class.jetpack-search-helpers.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,6 @@
 block discarded – undo
76 76
 	 * @since 5.8.0
77 77
 	 *
78 78
 	 * @param string|array $key   Query key or keys to remove.
79
-	 * @param bool|string  $query Optional. A URL to act upon.  Defaults to the current search URL.
80 79
 	 *
81 80
 	 * @return string New URL query string (unescaped).
82 81
 	 */
Please login to merge, or discard this patch.
sync/class.jetpack-sync-functions.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -178,6 +178,7 @@  discard block
 block discarded – undo
178 178
 	 * Helper function that is used when getting home or siteurl values. Decides
179 179
 	 * whether to get the raw or filtered value.
180 180
 	 *
181
+	 * @param string $url_type
181 182
 	 * @return string
182 183
 	 */
183 184
 	public static function get_raw_or_filtered_url( $url_type ) {
@@ -229,6 +230,9 @@  discard block
 block discarded – undo
229 230
 		return self::get_protocol_normalized_url( 'main_network_site_url', network_site_url() );
230 231
 	}
231 232
 
233
+	/**
234
+	 * @param string $callable
235
+	 */
232 236
 	public static function get_protocol_normalized_url( $callable, $new_value ) {
233 237
 		$option_key = self::HTTPS_CHECK_OPTION_PREFIX . $callable;
234 238
 
@@ -273,6 +277,9 @@  discard block
 block discarded – undo
273 277
 		return $value;
274 278
 	}
275 279
 
280
+	/**
281
+	 * @param string $url_function
282
+	 */
276 283
 	public static function normalize_www_in_url( $option, $url_function ) {
277 284
 		$url        = wp_wp_parse_url( call_user_func( $url_function ) );
278 285
 		$option_url = wp_wp_parse_url( get_option( $option ) );
Please login to merge, or discard this patch.