Code Duplication    Length = 10-10 lines in 2 locations

projects/plugins/jetpack/class.jetpack-idc.php 1 location

@@ 196-205 (lines=10) @@
193
	 *
194
	 * @return bool
195
	 */
196
	function admin_page_has_help_tabs() {
197
		if ( ! function_exists( 'get_current_screen' ) ) {
198
			return false;
199
		}
200
201
		$current_screen = get_current_screen();
202
		$tabs           = $current_screen->get_help_tabs();
203
204
		return ! empty( $tabs );
205
	}
206
207
	function display_non_admin_idc_notice() {
208
		$classes = 'jp-idc-notice inline is-non-admin notice notice-warning';

projects/packages/identity-crisis/src/class-identity-crisis.php 1 location

@@ 418-427 (lines=10) @@
415
	 *
416
	 * @return bool
417
	 */
418
	public function admin_page_has_help_tabs() {
419
		if ( ! function_exists( 'get_current_screen' ) ) {
420
			return false;
421
		}
422
423
		$current_screen = get_current_screen();
424
		$tabs           = $current_screen->get_help_tabs();
425
426
		return ! empty( $tabs );
427
	}
428
429
	/**
430
	 * Renders the non-admin IDC notice.