Completed
Push — fix/settings-access-offline-mo... ( e3cd72 )
by Jeremy
13:08
created
projects/plugins/jetpack/modules/widgets/simple-payments.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 		 * Returns the number of decimal places on string representing a price.
277 277
 		 *
278 278
 		 * @param string $number Price to check.
279
-		 * @return number number of decimal places.
279
+		 * @return null|integer number of decimal places.
280 280
 		 */
281 281
 		private function get_decimal_places( $number ) {
282 282
 			$parts = explode( '.', $number );
@@ -377,8 +377,7 @@  discard block
 block discarded – undo
377 377
 		/**
378 378
 		 * Gets the latests field value from either the old instance or the new instance.
379 379
 		 *
380
-		 * @param array $mixed Array of values for the new form instance.
381
-		 * @param array $mixed Array of values for the old form instance.
380
+		 * @param string $field
382 381
 		 * @return mixed $mixed Field value.
383 382
 		 */
384 383
 		private function get_latest_field_value( $new_instance, $old_instance, $field ) {
@@ -392,6 +391,7 @@  discard block
 block discarded – undo
392 391
 		 * it returns the default values.
393 392
 		 *
394 393
 		 * @param int Product Post ID.
394
+		 * @param integer $product_post_id
395 395
 		 * @return array $fields Product Fields from the Product Post.
396 396
 		 */
397 397
 		private function get_product_from_post( $product_post_id ) {
Please login to merge, or discard this patch.
classes/class-jetpack-woocommerce-analytics-universal.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@
 block discarded – undo
310 310
 	/**
311 311
 	 * Get the current user id
312 312
 	 *
313
-	 * @return int
313
+	 * @return string
314 314
 	 */
315 315
 	public function get_user_id() {
316 316
 		if ( is_user_logged_in() ) {
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/wordads/class-wordads.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 * Convenience function for grabbing options from params->options
119 119
 	 *
120 120
 	 * @param  string $option the option to grab.
121
-	 * @param  mixed  $default (optional).
121
+	 * @param  boolean  $default (optional).
122 122
 	 * @return option or $default if not set
123 123
 	 *
124 124
 	 * @since 4.5.0
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
 	/**
711 711
 	 * Check the reasons to bail before we attempt to insert ads.
712 712
 	 *
713
-	 * @return true if we should bail (don't insert ads)
713
+	 * @return boolean if we should bail (don't insert ads)
714 714
 	 *
715 715
 	 * @since 4.5.0
716 716
 	 */
Please login to merge, or discard this patch.
plugins/jetpack/modules/wordads/php/class-wordads-sidebar-widget.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 	 * @param array $args Widget args.
48 48
 	 * @param array $instance The Widget instance.
49 49
 	 *
50
-	 * @return bool|void
50
+	 * @return false|null
51 51
 	 */
52 52
 	public function widget( $args, $instance ) {
53 53
 		global $wordads;
Please login to merge, or discard this patch.
projects/plugins/jetpack/sal/class.json-api-links.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,7 @@  discard block
 block discarded – undo
30 30
 	 * Used to construct meta links in API responses
31 31
 	 *
32 32
 	 * @param mixed ...$args Optional arguments to be appended to URL
33
+	 * @param string $args
33 34
 	 * @return string Endpoint URL
34 35
 	 **/
35 36
 	function get_link( ...$args ) {
@@ -128,7 +129,7 @@  discard block
 block discarded – undo
128 129
 	 * This method is used in get_link() to construct meta links for API responses.
129 130
 	 *
130 131
 	 * @param $template_path string The generic endpoint path, e.g. /sites/%s
131
-	 * @param $path string The current endpoint path, relative to the version, e.g. /sites/12345
132
+	 * @param string $path string The current endpoint path, relative to the version, e.g. /sites/12345
132 133
 	 * @param $request_method string Request method used to access the endpoint path
133 134
 	 * @return string The current version, or otherwise the maximum version available
134 135
 	 */
Please login to merge, or discard this patch.
projects/plugins/jetpack/sal/class.json-api-post-base.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@  discard block
 block discarded – undo
16 16
 	public $context;
17 17
 	public $site;
18 18
 
19
+	/**
20
+	 * @param Jetpack_Site $site
21
+	 */
19 22
 	function __construct( $site, $post, $context ) {
20 23
 		$this->post = $post;
21 24
 		$this->context = $context;
@@ -508,6 +511,9 @@  discard block
 block discarded – undo
508 511
 		return $suggestions;
509 512
 	}
510 513
 
514
+	/**
515
+	 * @param string $context
516
+	 */
511 517
 	private function format_taxonomy( $taxonomy, $taxonomy_type, $context ) {
512 518
 		// Permissions
513 519
 		switch ( $context ) {
Please login to merge, or discard this patch.
projects/plugins/jetpack/sal/class.json-api-site-base.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
 	public $blog_id;
24 24
 	public $platform;
25 25
 
26
+	/**
27
+	 * @param WPORG_Platform $platform
28
+	 */
26 29
 	public function __construct( $blog_id, $platform ) {
27 30
 		$this->blog_id = $blog_id;
28 31
 		$this->platform = $platform;
Please login to merge, or discard this patch.
projects/plugins/jetpack/sal/class.json-api-site-jetpack-base.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -4,10 +4,20 @@  discard block
 block discarded – undo
4 4
 require_once dirname( __FILE__ ) . '/class.json-api-site-base.php';
5 5
 
6 6
 abstract class Abstract_Jetpack_Site extends SAL_Site {
7
+
8
+	/**
9
+	 * @param string $name
10
+	 */
7 11
 	abstract protected function get_constant( $name );
8 12
 
13
+	/**
14
+	 * @param string $feature_name
15
+	 */
9 16
 	abstract protected function current_theme_supports( $feature_name );
10 17
 
18
+	/**
19
+	 * @param string $feature_name
20
+	 */
11 21
 	abstract protected function get_theme_support( $feature_name );
12 22
 
13 23
 	abstract protected function get_mock_option( $name );
@@ -16,6 +26,9 @@  discard block
 block discarded – undo
16 26
 
17 27
 	abstract public function get_updates();
18 28
 
29
+	/**
30
+	 * @return string
31
+	 */
19 32
 	abstract protected function main_network_site();
20 33
 
21 34
 	abstract protected function wp_version();
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/contact-form/grunion-contact-form.php 1 patch
Doc Comments   +48 added lines, -2 removed lines patch added patch discarded remove patch
@@ -352,6 +352,9 @@  discard block
 block discarded – undo
352 352
 		return Grunion_Contact_Form::parse( $atts, do_blocks( $content ) );
353 353
 	}
354 354
 
355
+	/**
356
+	 * @param string $type
357
+	 */
355 358
 	public static function block_attributes_to_shortcode_attributes( $atts, $type ) {
356 359
 		$atts['type'] = $type;
357 360
 		if ( isset( $atts['className'] ) ) {
@@ -403,6 +406,10 @@  discard block
 block discarded – undo
403 406
 		$atts = self::block_attributes_to_shortcode_attributes( $atts, 'checkbox-multiple' );
404 407
 		return Grunion_Contact_Form::parse_contact_field( $atts, $content );
405 408
 	}
409
+
410
+	/**
411
+	 * @param string $content
412
+	 */
406 413
 	public static function gutenblock_render_field_radio( $atts, $content ) {
407 414
 		$atts = self::block_attributes_to_shortcode_attributes( $atts, 'radio' );
408 415
 		return Grunion_Contact_Form::parse_contact_field( $atts, $content );
@@ -2045,7 +2052,6 @@  discard block
 block discarded – undo
2045 2052
 	 *
2046 2053
 	 * @see ::style()
2047 2054
 	 * @internal
2048
-	 * @param bool $style
2049 2055
 	 */
2050 2056
 	static function _style_on() {
2051 2057
 		return self::style( true );
@@ -2236,6 +2242,7 @@  discard block
 block discarded – undo
2236 2242
 	 *
2237 2243
 	 * @param int                         $feedback_id
2238 2244
 	 * @param object Grunion_Contact_Form $form
2245
+	 * @param Grunion_Contact_Form $form
2239 2246
 	 *
2240 2247
 	 * @return string $message
2241 2248
 	 */
@@ -2394,7 +2401,7 @@  discard block
 block discarded – undo
2394 2401
 	 *
2395 2402
 	 * @param array       $attributes Key => Value pairs as parsed by shortcode_parse_atts()
2396 2403
 	 * @param string|null $content The shortcode's inner content: [contact-field]$content[/contact-field]
2397
-	 * @return HTML for the contact form field
2404
+	 * @return string for the contact form field
2398 2405
 	 */
2399 2406
 	static function parse_contact_field( $attributes, $content ) {
2400 2407
 		// Don't try to parse contact form fields if not inside a contact form
@@ -3523,6 +3530,9 @@  discard block
 block discarded – undo
3523 3530
 
3524 3531
 	}
3525 3532
 
3533
+	/**
3534
+	 * @param string $type
3535
+	 */
3526 3536
 	function render_input_field( $type, $id, $value, $class, $placeholder, $required ) {
3527 3537
 		return "<input
3528 3538
 					type='". esc_attr( $type ) ."'
@@ -3534,24 +3544,40 @@  discard block
 block discarded – undo
3534 3544
 				/>\n";
3535 3545
 	}
3536 3546
 
3547
+	/**
3548
+	 * @param string $class
3549
+	 * @param string $placeholder
3550
+	 */
3537 3551
 	function render_email_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3538 3552
 		$field = $this->render_label( 'email', $id, $label, $required, $required_field_text );
3539 3553
 		$field .= $this->render_input_field( 'email', $id, $value, $class, $placeholder, $required );
3540 3554
 		return $field;
3541 3555
 	}
3542 3556
 
3557
+	/**
3558
+	 * @param string $class
3559
+	 * @param string $placeholder
3560
+	 */
3543 3561
 	function render_telephone_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3544 3562
 		$field = $this->render_label( 'telephone', $id, $label, $required, $required_field_text );
3545 3563
 		$field .= $this->render_input_field( 'tel', $id, $value, $class, $placeholder, $required );
3546 3564
 		return $field;
3547 3565
 	}
3548 3566
 
3567
+	/**
3568
+	 * @param string $class
3569
+	 * @param string $placeholder
3570
+	 */
3549 3571
 	function render_url_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3550 3572
 		$field = $this->render_label( 'url', $id, $label, $required, $required_field_text );
3551 3573
 		$field .= $this->render_input_field( 'url', $id, $value, $class, $placeholder, $required );
3552 3574
 		return $field;
3553 3575
 	}
3554 3576
 
3577
+	/**
3578
+	 * @param string $class
3579
+	 * @param string $placeholder
3580
+	 */
3555 3581
 	function render_textarea_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3556 3582
 		$field = $this->render_label( 'textarea', 'contact-form-comment-' . $id, $label, $required, $required_field_text );
3557 3583
 		$field .= "<textarea
@@ -3566,6 +3592,9 @@  discard block
 block discarded – undo
3566 3592
 		return $field;
3567 3593
 	}
3568 3594
 
3595
+	/**
3596
+	 * @param string $class
3597
+	 */
3569 3598
 	function render_radio_field( $id, $label, $value, $class, $required, $required_field_text ) {
3570 3599
 		$field = $this->render_label( '', $id, $label, $required, $required_field_text );
3571 3600
 		foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) {
@@ -3587,6 +3616,9 @@  discard block
 block discarded – undo
3587 3616
 		return $field;
3588 3617
 	}
3589 3618
 
3619
+	/**
3620
+	 * @param string $class
3621
+	 */
3590 3622
 	function render_checkbox_field( $id, $label, $value, $class, $required, $required_field_text ) {
3591 3623
 		$field = "<label class='grunion-field-label checkbox" . ( $this->is_error() ? ' form-error' : '' ) . "'>";
3592 3624
 			$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";
@@ -3619,6 +3651,9 @@  discard block
 block discarded – undo
3619 3651
 		return $field;
3620 3652
 	}
3621 3653
 
3654
+	/**
3655
+	 * @param string $class
3656
+	 */
3622 3657
 	function render_checkbox_multiple_field( $id, $label, $value, $class, $required, $required_field_text  ) {
3623 3658
 		$field = $this->render_label( '', $id, $label, $required, $required_field_text );
3624 3659
 		foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) {
@@ -3634,6 +3669,9 @@  discard block
 block discarded – undo
3634 3669
 		return $field;
3635 3670
 	}
3636 3671
 
3672
+	/**
3673
+	 * @param string $class
3674
+	 */
3637 3675
 	function render_select_field( $id, $label, $value, $class, $required, $required_field_text ) {
3638 3676
 		$field = $this->render_label( 'select', $id, $label, $required, $required_field_text );
3639 3677
 		$field  .= "\t<select name='" . esc_attr( $id ) . "' id='" . esc_attr( $id ) . "' " . $class . ( $required ? "required aria-required='true'" : '' ) . ">\n";
@@ -3651,6 +3689,10 @@  discard block
 block discarded – undo
3651 3689
 		return $field;
3652 3690
 	}
3653 3691
 
3692
+	/**
3693
+	 * @param string $class
3694
+	 * @param string $placeholder
3695
+	 */
3654 3696
 	function render_date_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3655 3697
 
3656 3698
 		$field = $this->render_label( 'date', $id, $label, $required, $required_field_text );
@@ -3681,6 +3723,10 @@  discard block
 block discarded – undo
3681 3723
 		return $field;
3682 3724
 	}
3683 3725
 
3726
+	/**
3727
+	 * @param string $class
3728
+	 * @param string $placeholder
3729
+	 */
3684 3730
 	function render_default_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder, $type ) {
3685 3731
 		$field = $this->render_label( $type, $id, $label, $required, $required_field_text );
3686 3732
 		$field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required );
Please login to merge, or discard this patch.