Completed
Push — renovate/slack-web-api-5.x ( f1014a...4f2b74 )
by
unknown
30:35 queued 23:31
created
_inc/lib/jetpack-wpes-query-builder/jetpack-wpes-query-builder.php 1 patch
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 *
86 86
 	 * @param $function array A function structure to apply to the query
87 87
 	 *
88
-	 * @return void
88
+	 * @return Jetpack_WPES_Query_Builder
89 89
 	 */
90 90
 	public function add_weighting_function( $function ) {
91 91
 		$this->weighting_functions[] = $function;
@@ -100,10 +100,10 @@  discard block
 block discarded – undo
100 100
 	 *
101 101
 	 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html
102 102
 	 *
103
-	 * @param $function string name of the function
103
+	 * @param string $function string name of the function
104 104
 	 * @param $params array functions parameters
105 105
 	 *
106
-	 * @return void
106
+	 * @return Jetpack_WPES_Query_Builder
107 107
 	 */
108 108
 	public function add_function( $function, $params ) {
109 109
 		$this->functions[ $function ][] = $params;
@@ -119,10 +119,10 @@  discard block
 block discarded – undo
119 119
 	 *
120 120
 	 * @see https://www.elastic.co/guide/en/elasticsearch/guide/current/decay-functions.html
121 121
 	 *
122
-	 * @param $function string name of the decay function - linear, exp, or gauss
122
+	 * @param string $function string name of the decay function - linear, exp, or gauss
123 123
 	 * @param $params array The decay functions parameters, passed to ES directly
124 124
 	 *
125
-	 * @return void
125
+	 * @return Jetpack_WPES_Query_Builder
126 126
 	 */
127 127
 	public function add_decay( $function, $params ) {
128 128
 		$this->decays[ $function ][] = $params;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 	 *
138 138
 	 * @param $mode string name of how to score
139 139
 	 *
140
-	 * @return void
140
+	 * @return Jetpack_WPES_Query_Builder
141 141
 	 */
142 142
 	public function add_score_mode_to_functions( $mode='multiply' ) {
143 143
 		$this->functions_score_mode = $mode;
@@ -163,6 +163,9 @@  discard block
 block discarded – undo
163 163
 		return $this;
164 164
 	}
165 165
 
166
+	/**
167
+	 * @param string $aggs_name
168
+	 */
166 169
 	public function add_aggs( $aggs_name, $aggs ) {
167 170
 		$this->aggs_query = true;
168 171
 		$this->aggs[$aggs_name] = $aggs;
Please login to merge, or discard this patch.
json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -228,6 +228,9 @@
 block discarded – undo
228 228
 		);
229 229
 	}
230 230
 
231
+	/**
232
+	 * @param Queue $queue
233
+	 */
231 234
 	protected function get_buffer( $queue, $number_of_items ) {
232 235
 		$start = time();
233 236
 		$max_duration = 5; // this will try to get the buffer
Please login to merge, or discard this patch.
packages/sync/src/modules/class-constants.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 	 *
159 159
 	 * @param array $config Full sync configuration for this sync module.
160 160
 	 *
161
-	 * @return array Number of items yet to be enqueued.
161
+	 * @return integer Number of items yet to be enqueued.
162 162
 	 */
163 163
 	public function estimate_full_sync_actions( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
164 164
 		return 1;
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	 *
170 170
 	 * @access public
171 171
 	 *
172
-	 * @return array Full sync actions of this module.
172
+	 * @return string[] Full sync actions of this module.
173 173
 	 */
174 174
 	public function get_full_sync_actions() {
175 175
 		return array( 'jetpack_full_sync_constants' );
Please login to merge, or discard this patch.
packages/sync/src/modules/class-module.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	 *
68 68
 	 * @param string $object_type Type of the sync object.
69 69
 	 * @param int    $id          ID of the sync object.
70
-	 * @return mixed Object, or false if the object is invalid.
70
+	 * @return boolean Object, or false if the object is invalid.
71 71
 	 */
72 72
 	public function get_object_by_id( $object_type, $id ) {
73 73
 		return false;
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
 	 * @access protected
167 167
 	 *
168 168
 	 * @param array $action_names     Action names we're interested in.
169
-	 * @param array $actions_to_count Unfiltered list of actions we want to count.
170
-	 * @return array Number of actions that we're interested in.
169
+	 * @param string[] $actions_to_count Unfiltered list of actions we want to count.
170
+	 * @return integer Number of actions that we're interested in.
171 171
 	 */
172 172
 	protected function count_actions( $action_names, $actions_to_count ) {
173 173
 		return count( array_intersect( $action_names, $actions_to_count ) );
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 	/**
267 267
 	 * Given the Module Full Sync Configuration and Status return the next chunk of items to send.
268 268
 	 *
269
-	 * @param array $config This module Full Sync configuration.
269
+	 * @param string $config This module Full Sync configuration.
270 270
 	 * @param array $status This module Full Sync status.
271 271
 	 * @param int   $chunk_size Chunk size.
272 272
 	 *
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +32 added lines, -18 removed lines patch added patch discarded remove patch
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
 	 * This is ported over from the manage module, which has been deprecated and baked in here.
808 808
 	 *
809 809
 	 * @param $domains
810
-	 * @return array
810
+	 * @return string[]
811 811
 	 */
812 812
 	function allow_wpcom_domain( $domains ) {
813 813
 		if ( empty( $domains ) ) {
@@ -1222,7 +1222,7 @@  discard block
 block discarded – undo
1222 1222
 	/**
1223 1223
 	 * Does the network allow admins to add new users.
1224 1224
 	 *
1225
-	 * @return boolian
1225
+	 * @return boolean
1226 1226
 	 */
1227 1227
 	static function network_add_new_users( $option = null ) {
1228 1228
 		return (bool) get_site_option( 'add_new_users' );
@@ -1332,7 +1332,7 @@  discard block
 block discarded – undo
1332 1332
 	 *
1333 1333
 	 * @param  bool $option
1334 1334
 	 *
1335
-	 * @return boolean
1335
+	 * @return string
1336 1336
 	 */
1337 1337
 	public function is_main_network_option( $option ) {
1338 1338
 		// return '1' or ''
@@ -1343,7 +1343,7 @@  discard block
 block discarded – undo
1343 1343
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1344 1344
 	 *
1345 1345
 	 * @param  string $option
1346
-	 * @return boolean
1346
+	 * @return string
1347 1347
 	 */
1348 1348
 	public function is_multisite( $option ) {
1349 1349
 		return (string) (bool) is_multisite();
@@ -1406,7 +1406,7 @@  discard block
 block discarded – undo
1406 1406
 	/**
1407 1407
 	 * Returns true if the site has file write access false otherwise.
1408 1408
 	 *
1409
-	 * @return string ( '1' | '0' )
1409
+	 * @return integer ( '1' | '0' )
1410 1410
 	 **/
1411 1411
 	public static function file_system_write_access() {
1412 1412
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -2142,7 +2142,7 @@  discard block
 block discarded – undo
2142 2142
 	 * @param int    $user_id The user id.
2143 2143
 	 * @param string $token The user token.
2144 2144
 	 * @param bool   $is_master_user Whether the user is the master user.
2145
-	 * @return bool
2145
+	 * @return boolean|null
2146 2146
 	 */
2147 2147
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2148 2148
 		_deprecated_function( __METHOD__, 'jetpack-8.0', 'Automattic\\Jetpack\\Connection\\Utils::update_user_token' );
@@ -2585,7 +2585,7 @@  discard block
 block discarded – undo
2585 2585
 	 *
2586 2586
 	 * @param string $tag Tag as it appears in each module heading.
2587 2587
 	 *
2588
-	 * @return mixed
2588
+	 * @return string
2589 2589
 	 */
2590 2590
 	public static function translate_module_tag( $tag ) {
2591 2591
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2757,8 +2757,8 @@  discard block
 block discarded – undo
2757 2757
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2758 2758
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2759 2759
 	 *
2760
-	 * @param $string
2761
-	 * @return mixed
2760
+	 * @param string $string
2761
+	 * @return string|null
2762 2762
 	 */
2763 2763
 	public static function alias_directories( $string ) {
2764 2764
 		// ABSPATH has a trailing slash.
@@ -2769,6 +2769,10 @@  discard block
 block discarded – undo
2769 2769
 		return $string;
2770 2770
 	}
2771 2771
 
2772
+	/**
2773
+	 * @param boolean $redirect
2774
+	 * @param boolean $send_state_messages
2775
+	 */
2772 2776
 	public static function activate_default_modules(
2773 2777
 		$min_version = false,
2774 2778
 		$max_version = false,
@@ -3052,6 +3056,9 @@  discard block
 block discarded – undo
3052 3056
 		return self::update_active_modules( $new );
3053 3057
 	}
3054 3058
 
3059
+	/**
3060
+	 * @param string $module
3061
+	 */
3055 3062
 	public static function enable_module_configurable( $module ) {
3056 3063
 		$module = self::get_module_slug( $module );
3057 3064
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -3080,6 +3087,10 @@  discard block
 block discarded – undo
3080 3087
 	}
3081 3088
 
3082 3089
 	/* Installation */
3090
+
3091
+	/**
3092
+	 * @param string $message
3093
+	 */
3083 3094
 	public static function bail_on_activation( $message, $deactivate = true ) {
3084 3095
 		?>
3085 3096
 <!doctype html>
@@ -3829,7 +3840,7 @@  discard block
 block discarded – undo
3829 3840
 	 * Add help to the Jetpack page
3830 3841
 	 *
3831 3842
 	 * @since Jetpack (1.2.3)
3832
-	 * @return false if not the Jetpack page
3843
+	 * @return false|null if not the Jetpack page
3833 3844
 	 */
3834 3845
 	function admin_help() {
3835 3846
 		$current_screen = get_current_screen();
@@ -5126,7 +5137,7 @@  discard block
 block discarded – undo
5126 5137
 	 * @param String  $action  The action name.
5127 5138
 	 * @param Integer $user_id The user identifier.
5128 5139
 	 * @param Integer $exp     Expiration time in seconds.
5129
-	 * @return array
5140
+	 * @return boolean
5130 5141
 	 */
5131 5142
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
5132 5143
 		return self::connection()->generate_secrets( $action, $user_id, $exp );
@@ -5433,7 +5444,6 @@  discard block
 block discarded – undo
5433 5444
 	/**
5434 5445
 	 * Report authentication status to the WP REST API.
5435 5446
 	 *
5436
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5437 5447
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5438 5448
 	 */
5439 5449
 	public function wp_rest_authentication_errors( $value ) {
@@ -5535,6 +5545,7 @@  discard block
 block discarded – undo
5535 5545
 	 * @param string $key
5536 5546
 	 * @param string $value
5537 5547
 	 * @param bool   $restate private
5548
+	 * @return string
5538 5549
 	 */
5539 5550
 	public static function state( $key = null, $value = null, $restate = false ) {
5540 5551
 		static $state = array();
@@ -5593,6 +5604,9 @@  discard block
 block discarded – undo
5593 5604
 		self::state( null, null, true );
5594 5605
 	}
5595 5606
 
5607
+	/**
5608
+	 * @param string $file
5609
+	 */
5596 5610
 	public static function check_privacy( $file ) {
5597 5611
 		static $is_site_publicly_accessible = null;
5598 5612
 
@@ -5673,6 +5687,9 @@  discard block
 block discarded – undo
5673 5687
 		}
5674 5688
 	}
5675 5689
 
5690
+	/**
5691
+	 * @param string $url
5692
+	 */
5676 5693
 	public static function staticize_subdomain( $url ) {
5677 5694
 
5678 5695
 		// Extract hostname from URL
@@ -6242,9 +6259,7 @@  discard block
 block discarded – undo
6242 6259
 	 *
6243 6260
 	 * Attached to `style_loader_src` filter.
6244 6261
 	 *
6245
-	 * @param string $tag The tag that would link to the external asset.
6246 6262
 	 * @param string $handle The registered handle of the script in question.
6247
-	 * @param string $href The url of the asset in question.
6248 6263
 	 */
6249 6264
 	public static function set_suffix_on_min( $src, $handle ) {
6250 6265
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6435,8 +6450,8 @@  discard block
 block discarded – undo
6435 6450
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6436 6451
 	 *  - Domain root relative URLs `/feh.png`
6437 6452
 	 *
6438
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6439
-	 * @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.
6440 6455
 	 *
6441 6456
 	 * @return mixed|string
6442 6457
 	 */
@@ -6697,7 +6712,7 @@  discard block
 block discarded – undo
6697 6712
 	/**
6698 6713
 	 * Stores and prints out domains to prefetch for page speed optimization.
6699 6714
 	 *
6700
-	 * @param mixed $new_urls
6715
+	 * @param string[] $new_urls
6701 6716
 	 */
6702 6717
 	public static function dns_prefetch( $new_urls = null ) {
6703 6718
 		static $prefetch_urls = array();
@@ -6754,7 +6769,6 @@  discard block
 block discarded – undo
6754 6769
 	}
6755 6770
 
6756 6771
 	/**
6757
-	 * @param mixed $result Value for the user's option
6758 6772
 	 * @return mixed
6759 6773
 	 */
6760 6774
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.
packages/status/tests/php/test_Status.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -205,8 +205,7 @@  discard block
 block discarded – undo
205 205
 	/**
206 206
 	 * Mock a set of constants.
207 207
 	 *
208
-	 * @param array $args Array of sets with constants and their respective values.
209
-	 * @return phpmock\Mock The mock object.
208
+	 * @return phpmock\Mock[] The mock object.
210 209
 	 */
211 210
 	protected function mock_constants( $constants = array() ) {
212 211
 		$prepare_constant = function( $constant ) {
@@ -222,7 +221,7 @@  discard block
 block discarded – undo
222 221
 	/**
223 222
 	 * Mock $wpdb->get_var() and make it return a certain value.
224 223
 	 *
225
-	 * @param mixed  $return_value  Return value of the function.
224
+	 * @param integer  $return_value  Return value of the function.
226 225
 	 * @return PHPUnit\Framework\MockObject\MockObject The mock object.
227 226
 	 */
228 227
 	protected function mock_wpdb_get_var( $return_value = null ) {
Please login to merge, or discard this patch.
_inc/lib/core-api/load-wpcom-endpoints.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
  *  - wp-content/rest-api-plugins/jetpack-endpoints/
9 9
  */
10 10
 
11
+/**
12
+ * @param string $file_pattern
13
+ */
11 14
 function wpcom_rest_api_v2_load_plugin_files( $file_pattern ) {
12 15
 	$plugins = glob( dirname( __FILE__ ) . '/' . $file_pattern );
13 16
 
Please login to merge, or discard this patch.
packages/sync/src/class-functions.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 	/**
182 182
 	 * Return a hosting provider using a set of known constants.
183 183
 	 *
184
-	 * @return mixed A host identifier string or false.
184
+	 * @return string|false A host identifier string or false.
185 185
 	 */
186 186
 	public function get_hosting_provider_by_known_constant() {
187 187
 		$hosting_provider_constants = array(
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	/**
210 210
 	 * Return a hosting provider using a set of known classes.
211 211
 	 *
212
-	 * @return mixed A host identifier string or false.
212
+	 * @return string|false A host identifier string or false.
213 213
 	 */
214 214
 	public function get_hosting_provider_by_known_class() {
215 215
 		$hosting_provider = false;
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 	/**
227 227
 	 * Return a hosting provider using a set of known functions.
228 228
 	 *
229
-	 * @return mixed A host identifier string or false.
229
+	 * @return string|false A host identifier string or false.
230 230
 	 */
231 231
 	public function get_hosting_provider_by_known_function() {
232 232
 		$hosting_provider = false;
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
 	 *
442 442
 	 * @param string   $option Option value from the site.
443 443
 	 * @param callable $url_function Function retrieving the URL to normalize.
444
-	 * @return mixed|string URL.
444
+	 * @return callable URL.
445 445
 	 */
446 446
 	public static function normalize_www_in_url( $option, $url_function ) {
447 447
 		$url        = wp_parse_url( call_user_func( $url_function ) );
Please login to merge, or discard this patch.