Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 246-255 (lines=10) @@
243
	 *
244
	 * @return bool
245
	 */
246
	public function admin_page_has_help_tabs() {
247
		if ( ! function_exists( 'get_current_screen' ) ) {
248
			return false;
249
		}
250
251
		$current_screen = get_current_screen();
252
		$tabs           = $current_screen->get_help_tabs();
253
254
		return ! empty( $tabs );
255
	}
256
257
	/**
258
	 * Renders the non-admin IDC notice.

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';