Code Duplication    Length = 16-17 lines in 2 locations

modules/subscriptions/views.php 2 locations

@@ 167-182 (lines=16) @@
164
							__( 'Manage your email preferences.', 'jetpack' )
165
						); ?></p>
166
					<?php break;
167
				case 'many_pending_subs':
168
					?>
169
					<p class="error">
170
						<?php
171
						printf(
172
							wp_kses(
173
								/* translators: 1: Link to Subscription Management page https://subscribe.wordpress.com/, 2: Description of this link */
174
								__( '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' ),
175
								self::$allowed_html_tags_for_message
176
							),
177
							'https://subscribe.wordpress.com/',
178
							esc_attr__( 'Manage your email preferences.', 'jetpack' )
179
						);
180
						?>
181
					</p>
182
					<?php break;
183
				case 'pending':
184
					?>
185
					<p class="error">
@@ 183-199 (lines=17) @@
180
						?>
181
					</p>
182
					<?php break;
183
				case 'pending':
184
					?>
185
					<p class="error">
186
						<?php
187
						printf(
188
							wp_kses(
189
								/* translators: 1: Link to Subscription Management page https://subscribe.wordpress.com/, 2: Description of this link */
190
								__( 'You subscribed this site before but you have not clicked the confirmation link yet. Please check your mailbox. <br /> Otherwise, you can manage your preferences at <a href="%1$s" title="%2$s" target="_blank">subscribe.wordpress.com</a>.', 'jetpack' ),
191
								self::$allowed_html_tags_for_message
192
							),
193
							'https://subscribe.wordpress.com/',
194
							esc_attr__( 'Manage your email preferences.', 'jetpack' )
195
						);
196
						?>
197
					</p>
198
					<?php
199
					break;
200
				case 'success' : ?>
201
                    <div class="success"><?php echo wpautop( str_replace( '[total-subscribers]', number_format_i18n( $subscribers_total['value'] ), $success_message ) ); ?></div>
202
					<?php break;