Code Duplication    Length = 8-9 lines in 2 locations

modules/sso.php 2 locations

@@ 281-289 (lines=9) @@
278
	 *
279
	 * @since 2.7
280
	 **/
281
	public function render_require_two_step() {
282
		/** This filter is documented in modules/sso.php */
283
		$require_two_step = Jetpack_SSO_Helpers::is_two_step_required();
284
		$disabled = $require_two_step ? ' disabled="disabled"' : '';
285
		echo '<label>';
286
		echo '<input type="checkbox" name="jetpack_sso_require_two_step" ' . checked( $require_two_step, true, false ) . "$disabled>";
287
		esc_html_e( 'Require Two-Step Authentication' , 'jetpack' );
288
		echo '</label>';
289
	}
290
291
	/**
292
	 * Validate the require  two step checkbox in Settings > General
@@ 307-314 (lines=8) @@
304
	 *
305
	 * @since 2.9
306
	 **/
307
	public function render_match_by_email() {
308
		$match_by_email = 1 == $this->match_by_email();
309
		$disabled = $match_by_email ? ' disabled="disabled"' : '';
310
		echo '<label>';
311
		echo '<input type="checkbox" name="jetpack_sso_match_by_email"' . checked( $match_by_email, true, false ) . "$disabled>";
312
		esc_html_e( 'Match by Email', 'jetpack' );
313
		echo '</label>';
314
	}
315
316
	/**
317
	 * Validate the match by email check in Settings > General