Code Duplication    Length = 10-10 lines in 2 locations

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

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

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

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