Code Duplication    Length = 9-9 lines in 4 locations

modules/subscriptions/class-widget.php 4 locations

@@ 574-582 (lines=9) @@
571
				$status  = 'error';
572
				$message = esc_html__( 'The email you entered was invalid. Please check and try again.', 'jetpack' );
573
				break;
574
			case 'opted_out':
575
				$status  = 'error';
576
				$message = sprintf(
577
					/* translators: 1: Link to Subscription Management page https://subscribe.wordpress.com/, 2: Description of this link */
578
					__( 'The email address has opted out of subscription emails. <br /> You can manage your preferences at <a href="%1$s" title="%2$s" target="_blank" rel="noopener noreferrer">subscribe.wordpress.com</a>', 'jetpack' ),
579
					'https://subscribe.wordpress.com/',
580
					esc_attr__( 'Manage your email preferences.', 'jetpack' )
581
				);
582
				break;
583
			case 'already':
584
				$status  = 'error';
585
				$message = sprintf(
@@ 583-591 (lines=9) @@
580
					esc_attr__( 'Manage your email preferences.', 'jetpack' )
581
				);
582
				break;
583
			case 'already':
584
				$status  = 'error';
585
				$message = sprintf(
586
					/* translators: 1: Link to Subscription Management page https://subscribe.wordpress.com/, 2: Description of this link */
587
					__( 'You have already subscribed to this site. Please check your inbox. <br /> You can manage your preferences at <a href="%1$s" title="%2$s" target="_blank" rel="noopener noreferrer">subscribe.wordpress.com</a>', 'jetpack' ),
588
					'https://subscribe.wordpress.com/',
589
					esc_attr__( 'Manage your email preferences.', 'jetpack' )
590
				);
591
				break;
592
			case 'many_pending_subs':
593
				$status  = 'error';
594
				$message = sprintf(
@@ 592-600 (lines=9) @@
589
					esc_attr__( 'Manage your email preferences.', 'jetpack' )
590
				);
591
				break;
592
			case 'many_pending_subs':
593
				$status  = 'error';
594
				$message = sprintf(
595
					/* translators: 1: Link to Subscription Management page https://subscribe.wordpress.com/, 2: Description of this link */
596
					__( 'You already have several pending email subscriptions. <br /> Approve or delete a few subscriptions at <a href="%1$s" title="%2$s" target="_blank" rel="noopener noreferrer">subscribe.wordpress.com</a> before continuing.', 'jetpack' ),
597
					'https://subscribe.wordpress.com/',
598
					esc_attr__( 'Manage your email preferences.', 'jetpack' )
599
				);
600
				break;
601
			case 'pending':
602
				$status  = 'error';
603
				$message = sprintf(
@@ 601-609 (lines=9) @@
598
					esc_attr__( 'Manage your email preferences.', 'jetpack' )
599
				);
600
				break;
601
			case 'pending':
602
				$status  = 'error';
603
				$message = sprintf(
604
					/* translators: 1: Link to Subscription Management page https://subscribe.wordpress.com/, 2: Description of this link */
605
					__( 'You subscribed this site before but you have not clicked the confirmation link yet. Please check your inbox. <br /> Otherwise, you can manage your preferences at <a href="%1$s" title="%2$s" target="_blank" rel="noopener noreferrer">subscribe.wordpress.com</a>.', 'jetpack' ),
606
					'https://subscribe.wordpress.com/',
607
					esc_attr__( 'Manage your email preferences.', 'jetpack' )
608
				);
609
				break;
610
			case 'success':
611
				$status  = 'success';
612
				$message = wpautop(