Code Duplication    Length = 8-9 lines in 2 locations

modules/sso.php 2 locations

@@ 289-297 (lines=9) @@
286
	 *
287
	 * @since 2.7
288
	 **/
289
	public function render_require_two_step() {
290
		/** This filter is documented in modules/sso.php */
291
		$require_two_step = Jetpack_SSO_Helpers::is_two_step_required();
292
		$disabled = $require_two_step ? ' disabled="disabled"' : '';
293
		echo '<label>';
294
		echo '<input type="checkbox" name="jetpack_sso_require_two_step" ' . checked( $require_two_step, true, false ) . "$disabled>";
295
		esc_html_e( 'Require Two-Step Authentication' , 'jetpack' );
296
		echo '</label>';
297
	}
298
299
	/**
300
	 * Validate the require  two step checkbox in Settings > General
@@ 315-322 (lines=8) @@
312
	 *
313
	 * @since 2.9
314
	 **/
315
	public function render_match_by_email() {
316
		$match_by_email = 1 == $this->match_by_email();
317
		$disabled = $match_by_email ? ' disabled="disabled"' : '';
318
		echo '<label>';
319
		echo '<input type="checkbox" name="jetpack_sso_match_by_email"' . checked( $match_by_email, true, false ) . "$disabled>";
320
		esc_html_e( 'Match by Email', 'jetpack' );
321
		echo '</label>';
322
	}
323
324
	/**
325
	 * Validate the match by email check in Settings > General