Completed
Push — update/add_crm_toggle ( 0afa6c...d43f92 )
by
unknown
11:00 queued 02:49
created
json-endpoints/class.wpcom-json-api-site-settings-v1-2-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
 	}
28 28
 
29 29
 
30
+	/**
31
+	 * @param string $key
32
+	 */
30 33
 	protected function get_locale( $key ) {
31 34
 		if ( 'locale' == $key ) {
32 35
 			if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
Please login to merge, or discard this patch.
modules/sharedaddy/sharing-service.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -505,6 +505,9 @@
 block discarded – undo
505 505
 	public $service = '';
506 506
 	public $total   = 0;
507 507
 
508
+	/**
509
+	 * @param integer $total
510
+	 */
508 511
 	public function __construct( $id, $total ) {
509 512
 		$services      = new Sharing_Service();
510 513
 		$this->id      = esc_html( $id );
Please login to merge, or discard this patch.
modules/contact-form/grunion-contact-form.php 1 patch
Doc Comments   +44 added lines, -2 removed lines patch added patch discarded remove patch
@@ -302,6 +302,9 @@  discard block
 block discarded – undo
302 302
 		return Grunion_Contact_Form::parse( $atts, do_blocks( $content ) );
303 303
 	}
304 304
 
305
+	/**
306
+	 * @param string $type
307
+	 */
305 308
 	public static function block_attributes_to_shortcode_attributes( $atts, $type ) {
306 309
 		$atts['type'] = $type;
307 310
 		if ( isset( $atts['className'] ) ) {
@@ -1925,7 +1928,6 @@  discard block
 block discarded – undo
1925 1928
 	 *
1926 1929
 	 * @see ::style()
1927 1930
 	 * @internal
1928
-	 * @param bool $style
1929 1931
 	 */
1930 1932
 	static function _style_on() {
1931 1933
 		return self::style( true );
@@ -2096,6 +2098,7 @@  discard block
 block discarded – undo
2096 2098
 	 *
2097 2099
 	 * @param int                         $feedback_id
2098 2100
 	 * @param object Grunion_Contact_Form $form
2101
+	 * @param Grunion_Contact_Form $form
2099 2102
 	 *
2100 2103
 	 * @return string $message
2101 2104
 	 */
@@ -2220,7 +2223,7 @@  discard block
 block discarded – undo
2220 2223
 	 *
2221 2224
 	 * @param array       $attributes Key => Value pairs as parsed by shortcode_parse_atts()
2222 2225
 	 * @param string|null $content The shortcode's inner content: [contact-field]$content[/contact-field]
2223
-	 * @return HTML for the contact form field
2226
+	 * @return string for the contact form field
2224 2227
 	 */
2225 2228
 	static function parse_contact_field( $attributes, $content ) {
2226 2229
 		// Don't try to parse contact form fields if not inside a contact form
@@ -3260,6 +3263,9 @@  discard block
 block discarded – undo
3260 3263
 
3261 3264
 	}
3262 3265
 
3266
+	/**
3267
+	 * @param string $type
3268
+	 */
3263 3269
 	function render_input_field( $type, $id, $value, $class, $placeholder, $required ) {
3264 3270
 		return "<input
3265 3271
 					type='". esc_attr( $type ) ."'
@@ -3271,24 +3277,40 @@  discard block
 block discarded – undo
3271 3277
 				/>\n";
3272 3278
 	}
3273 3279
 
3280
+	/**
3281
+	 * @param string $class
3282
+	 * @param string $placeholder
3283
+	 */
3274 3284
 	function render_email_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3275 3285
 		$field = $this->render_label( 'email', $id, $label, $required, $required_field_text );
3276 3286
 		$field .= $this->render_input_field( 'email', $id, $value, $class, $placeholder, $required );
3277 3287
 		return $field;
3278 3288
 	}
3279 3289
 
3290
+	/**
3291
+	 * @param string $class
3292
+	 * @param string $placeholder
3293
+	 */
3280 3294
 	function render_telephone_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3281 3295
 		$field = $this->render_label( 'telephone', $id, $label, $required, $required_field_text );
3282 3296
 		$field .= $this->render_input_field( 'tel', $id, $value, $class, $placeholder, $required );
3283 3297
 		return $field;
3284 3298
 	}
3285 3299
 
3300
+	/**
3301
+	 * @param string $class
3302
+	 * @param string $placeholder
3303
+	 */
3286 3304
 	function render_url_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3287 3305
 		$field = $this->render_label( 'url', $id, $label, $required, $required_field_text );
3288 3306
 		$field .= $this->render_input_field( 'url', $id, $value, $class, $placeholder, $required );
3289 3307
 		return $field;
3290 3308
 	}
3291 3309
 
3310
+	/**
3311
+	 * @param string $class
3312
+	 * @param string $placeholder
3313
+	 */
3292 3314
 	function render_textarea_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3293 3315
 		$field = $this->render_label( 'textarea', 'contact-form-comment-' . $id, $label, $required, $required_field_text );
3294 3316
 		$field .= "<textarea
@@ -3303,6 +3325,9 @@  discard block
 block discarded – undo
3303 3325
 		return $field;
3304 3326
 	}
3305 3327
 
3328
+	/**
3329
+	 * @param string $class
3330
+	 */
3306 3331
 	function render_radio_field( $id, $label, $value, $class, $required, $required_field_text ) {
3307 3332
 		$field = $this->render_label( '', $id, $label, $required, $required_field_text );
3308 3333
 		foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) {
@@ -3324,6 +3349,9 @@  discard block
 block discarded – undo
3324 3349
 		return $field;
3325 3350
 	}
3326 3351
 
3352
+	/**
3353
+	 * @param string $class
3354
+	 */
3327 3355
 	function render_checkbox_field( $id, $label, $value, $class, $required, $required_field_text ) {
3328 3356
 		$field = "<label class='grunion-field-label checkbox" . ( $this->is_error() ? ' form-error' : '' ) . "'>";
3329 3357
 			$field .= "\t\t<input type='checkbox' name='" . esc_attr( $id ) . "' value='" . esc_attr__( 'Yes', 'jetpack' ) . "' " . $class . checked( (bool) $value, true, false ) . ' ' . ( $required ? "required aria-required='true'" : '' ) . "/> \n";
@@ -3333,6 +3361,9 @@  discard block
 block discarded – undo
3333 3361
 		return $field;
3334 3362
 	}
3335 3363
 
3364
+	/**
3365
+	 * @param string $class
3366
+	 */
3336 3367
 	function render_checkbox_multiple_field( $id, $label, $value, $class, $required, $required_field_text  ) {
3337 3368
 		$field = $this->render_label( '', $id, $label, $required, $required_field_text );
3338 3369
 		foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) {
@@ -3348,6 +3379,9 @@  discard block
 block discarded – undo
3348 3379
 		return $field;
3349 3380
 	}
3350 3381
 
3382
+	/**
3383
+	 * @param string $class
3384
+	 */
3351 3385
 	function render_select_field( $id, $label, $value, $class, $required, $required_field_text ) {
3352 3386
 		$field = $this->render_label( 'select', $id, $label, $required, $required_field_text );
3353 3387
 		$field  .= "\t<select name='" . esc_attr( $id ) . "' id='" . esc_attr( $id ) . "' " . $class . ( $required ? "required aria-required='true'" : '' ) . ">\n";
@@ -3365,6 +3399,10 @@  discard block
 block discarded – undo
3365 3399
 		return $field;
3366 3400
 	}
3367 3401
 
3402
+	/**
3403
+	 * @param string $class
3404
+	 * @param string $placeholder
3405
+	 */
3368 3406
 	function render_date_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3369 3407
 
3370 3408
 		$field = $this->render_label( 'date', $id, $label, $required, $required_field_text );
@@ -3395,6 +3433,10 @@  discard block
 block discarded – undo
3395 3433
 		return $field;
3396 3434
 	}
3397 3435
 
3436
+	/**
3437
+	 * @param string $class
3438
+	 * @param string $placeholder
3439
+	 */
3398 3440
 	function render_default_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder, $type ) {
3399 3441
 		$field = $this->render_label( $type, $id, $label, $required, $required_field_text );
3400 3442
 		$field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required );
Please login to merge, or discard this patch.
packages/sync/src/class-actions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
 	 * @access public
337 337
 	 * @static
338 338
 	 *
339
-	 * @return bool|null False if sync is not allowed.
339
+	 * @return false|null False if sync is not allowed.
340 340
 	 */
341 341
 	public static function do_initial_sync() {
342 342
 		// Lets not sync if we are not suppose to.
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
 	 * @static
507 507
 	 *
508 508
 	 * @param array $sync_modules The list of sync modules declared prior to this filter.
509
-	 * @return array A list of sync modules that now includes Woo's modules.
509
+	 * @return string[] A list of sync modules that now includes Woo's modules.
510 510
 	 */
511 511
 	public static function add_woocommerce_sync_module( $sync_modules ) {
512 512
 		$sync_modules[] = 'Automattic\\Jetpack\\Sync\\Modules\\WooCommerce';
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
 	 * @static
534 534
 	 *
535 535
 	 * @param array $sync_modules The list of sync modules declared prior to this filer.
536
-	 * @return array A list of sync modules that now includes WP Super Cache's modules.
536
+	 * @return string[] A list of sync modules that now includes WP Super Cache's modules.
537 537
 	 */
538 538
 	public static function add_wp_super_cache_sync_module( $sync_modules ) {
539 539
 		$sync_modules[] = 'Automattic\\Jetpack\\Sync\\Modules\\WP_Super_Cache';
Please login to merge, or discard this patch.
packages/connection/src/class-manager.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	/**
273 273
 	 * Verifies the signature of the current request.
274 274
 	 *
275
-	 * @return false|array
275
+	 * @return boolean
276 276
 	 */
277 277
 	public function verify_xml_rpc_signature() {
278 278
 		if ( is_null( $this->xmlrpc_verification ) ) {
@@ -1134,6 +1134,7 @@  discard block
 block discarded – undo
1134 1134
 	 * @param String  $action  The action name.
1135 1135
 	 * @param Integer $user_id The user identifier.
1136 1136
 	 * @param Integer $exp     Expiration time in seconds.
1137
+	 * @return string
1137 1138
 	 */
1138 1139
 	public function generate_secrets( $action, $user_id = false, $exp = 600 ) {
1139 1140
 		if ( false === $user_id ) {
@@ -1549,7 +1550,7 @@  discard block
 block discarded – undo
1549 1550
 	 *
1550 1551
 	 * @param int|false    $user_id   false: Return the Blog Token. int: Return that user's User Token.
1551 1552
 	 * @param string|false $token_key If provided, check that the token matches the provided input.
1552
-	 * @param bool|true    $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found.
1553
+	 * @param boolean    $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found.
1553 1554
 	 *
1554 1555
 	 * @return object|false
1555 1556
 	 */
Please login to merge, or discard this patch.
_inc/lib/class.core-rest-api-endpoints.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -1264,7 +1264,6 @@
 block discarded – undo
1264 1264
 	 *
1265 1265
 	 * @since 4.3.0
1266 1266
 	 *
1267
-	 * @param WP_REST_Request $request The request sent to the WP REST API.
1268 1267
 	 *
1269 1268
 	 * @return object
1270 1269
 	 */
Please login to merge, or discard this patch.
packages/connection/src/class-error-handler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@
 block discarded – undo
308 308
 	 * @since 8.7.0
309 309
 	 *
310 310
 	 * @param array|string $data the data to be encoded.
311
-	 * @return boolean|string The encoded string on success, false on failure
311
+	 * @return false|string The encoded string on success, false on failure
312 312
 	 */
313 313
 	public function encrypt_data_to_wpcom( $data ) {
314 314
 
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +34 added lines, -17 removed lines patch added patch discarded remove patch
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
 	 * This is ported over from the manage module, which has been deprecated and baked in here.
911 911
 	 *
912 912
 	 * @param $domains
913
-	 * @return array
913
+	 * @return string[]
914 914
 	 */
915 915
 	function allow_wpcom_domain( $domains ) {
916 916
 		if ( empty( $domains ) ) {
@@ -1292,7 +1292,7 @@  discard block
 block discarded – undo
1292 1292
 	/**
1293 1293
 	 * Does the network allow admins to add new users.
1294 1294
 	 *
1295
-	 * @return boolian
1295
+	 * @return boolean
1296 1296
 	 */
1297 1297
 	static function network_add_new_users( $option = null ) {
1298 1298
 		return (bool) get_site_option( 'add_new_users' );
@@ -1402,7 +1402,7 @@  discard block
 block discarded – undo
1402 1402
 	 *
1403 1403
 	 * @param  bool $option
1404 1404
 	 *
1405
-	 * @return boolean
1405
+	 * @return string
1406 1406
 	 */
1407 1407
 	public function is_main_network_option( $option ) {
1408 1408
 		// return '1' or ''
@@ -1413,7 +1413,7 @@  discard block
 block discarded – undo
1413 1413
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1414 1414
 	 *
1415 1415
 	 * @param  string $option
1416
-	 * @return boolean
1416
+	 * @return string
1417 1417
 	 */
1418 1418
 	public function is_multisite( $option ) {
1419 1419
 		return (string) (bool) is_multisite();
@@ -1476,7 +1476,7 @@  discard block
 block discarded – undo
1476 1476
 	/**
1477 1477
 	 * Returns true if the site has file write access false otherwise.
1478 1478
 	 *
1479
-	 * @return string ( '1' | '0' )
1479
+	 * @return integer ( '1' | '0' )
1480 1480
 	 **/
1481 1481
 	public static function file_system_write_access() {
1482 1482
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -2197,7 +2197,7 @@  discard block
 block discarded – undo
2197 2197
 	 * @param int    $user_id The user id.
2198 2198
 	 * @param string $token The user token.
2199 2199
 	 * @param bool   $is_master_user Whether the user is the master user.
2200
-	 * @return bool
2200
+	 * @return boolean|null
2201 2201
 	 */
2202 2202
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2203 2203
 		_deprecated_function( __METHOD__, 'jetpack-8.0', 'Automattic\\Jetpack\\Connection\\Utils::update_user_token' );
@@ -2642,7 +2642,7 @@  discard block
 block discarded – undo
2642 2642
 	 *
2643 2643
 	 * @param string $tag Tag as it appears in each module heading.
2644 2644
 	 *
2645
-	 * @return mixed
2645
+	 * @return string
2646 2646
 	 */
2647 2647
 	public static function translate_module_tag( $tag ) {
2648 2648
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2814,8 +2814,8 @@  discard block
 block discarded – undo
2814 2814
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2815 2815
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2816 2816
 	 *
2817
-	 * @param $string
2818
-	 * @return mixed
2817
+	 * @param string $string
2818
+	 * @return string|null
2819 2819
 	 */
2820 2820
 	public static function alias_directories( $string ) {
2821 2821
 		// ABSPATH has a trailing slash.
@@ -2826,6 +2826,10 @@  discard block
 block discarded – undo
2826 2826
 		return $string;
2827 2827
 	}
2828 2828
 
2829
+	/**
2830
+	 * @param boolean $redirect
2831
+	 * @param boolean $send_state_messages
2832
+	 */
2829 2833
 	public static function activate_default_modules(
2830 2834
 		$min_version = false,
2831 2835
 		$max_version = false,
@@ -3109,6 +3113,9 @@  discard block
 block discarded – undo
3109 3113
 		return self::update_active_modules( $new );
3110 3114
 	}
3111 3115
 
3116
+	/**
3117
+	 * @param string $module
3118
+	 */
3112 3119
 	public static function enable_module_configurable( $module ) {
3113 3120
 		$module = self::get_module_slug( $module );
3114 3121
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -3137,6 +3144,10 @@  discard block
 block discarded – undo
3137 3144
 	}
3138 3145
 
3139 3146
 	/* Installation */
3147
+
3148
+	/**
3149
+	 * @param string $message
3150
+	 */
3140 3151
 	public static function bail_on_activation( $message, $deactivate = true ) {
3141 3152
 		?>
3142 3153
 <!doctype html>
@@ -3908,7 +3919,7 @@  discard block
 block discarded – undo
3908 3919
 	 * Add help to the Jetpack page
3909 3920
 	 *
3910 3921
 	 * @since Jetpack (1.2.3)
3911
-	 * @return false if not the Jetpack page
3922
+	 * @return false|null if not the Jetpack page
3912 3923
 	 */
3913 3924
 	function admin_help() {
3914 3925
 		$current_screen = get_current_screen();
@@ -5020,6 +5031,9 @@  discard block
 block discarded – undo
5020 5031
 		return $url;
5021 5032
 	}
5022 5033
 
5034
+	/**
5035
+	 * @param string $actionurl
5036
+	 */
5023 5037
 	public static function nonce_url_no_esc( $actionurl, $action = -1, $name = '_wpnonce' ) {
5024 5038
 		$actionurl = str_replace( '&amp;', '&', $actionurl );
5025 5039
 		return add_query_arg( $name, wp_create_nonce( $action ), $actionurl );
@@ -5322,7 +5336,7 @@  discard block
 block discarded – undo
5322 5336
 	 * @param String  $action  The action name.
5323 5337
 	 * @param Integer $user_id The user identifier.
5324 5338
 	 * @param Integer $exp     Expiration time in seconds.
5325
-	 * @return array
5339
+	 * @return boolean
5326 5340
 	 */
5327 5341
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
5328 5342
 		return self::connection()->generate_secrets( $action, $user_id, $exp );
@@ -5642,7 +5656,6 @@  discard block
 block discarded – undo
5642 5656
 	/**
5643 5657
 	 * Report authentication status to the WP REST API.
5644 5658
 	 *
5645
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5646 5659
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5647 5660
 	 */
5648 5661
 	public function wp_rest_authentication_errors( $value ) {
@@ -5769,6 +5782,7 @@  discard block
 block discarded – undo
5769 5782
 	 * @param string $key
5770 5783
 	 * @param string $value
5771 5784
 	 * @param bool   $restate private
5785
+	 * @return string
5772 5786
 	 */
5773 5787
 	public static function state( $key = null, $value = null, $restate = false ) {
5774 5788
 		static $state = array();
@@ -5850,6 +5864,9 @@  discard block
 block discarded – undo
5850 5864
 		return true;
5851 5865
 	}
5852 5866
 
5867
+	/**
5868
+	 * @param string $file
5869
+	 */
5853 5870
 	public static function check_privacy( $file ) {
5854 5871
 		static $is_site_publicly_accessible = null;
5855 5872
 
@@ -5930,6 +5947,9 @@  discard block
 block discarded – undo
5930 5947
 		}
5931 5948
 	}
5932 5949
 
5950
+	/**
5951
+	 * @param string $url
5952
+	 */
5933 5953
 	public static function staticize_subdomain( $url ) {
5934 5954
 
5935 5955
 		// Extract hostname from URL
@@ -6430,9 +6450,7 @@  discard block
 block discarded – undo
6430 6450
 	 *
6431 6451
 	 * Attached to `style_loader_src` filter.
6432 6452
 	 *
6433
-	 * @param string $tag The tag that would link to the external asset.
6434 6453
 	 * @param string $handle The registered handle of the script in question.
6435
-	 * @param string $href The url of the asset in question.
6436 6454
 	 */
6437 6455
 	public static function set_suffix_on_min( $src, $handle ) {
6438 6456
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6639,8 +6657,8 @@  discard block
 block discarded – undo
6639 6657
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6640 6658
 	 *  - Domain root relative URLs `/feh.png`
6641 6659
 	 *
6642
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6643
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6660
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6661
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6644 6662
 	 *
6645 6663
 	 * @return mixed|string
6646 6664
 	 */
@@ -6962,7 +6980,6 @@  discard block
 block discarded – undo
6962 6980
 	}
6963 6981
 
6964 6982
 	/**
6965
-	 * @param mixed $result Value for the user's option
6966 6983
 	 * @return mixed
6967 6984
 	 */
6968 6985
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.