Code Duplication    Length = 3-4 lines in 2 locations

projects/plugins/jetpack/_inc/lib/admin-pages/class.jetpack-react-page.php 2 locations

@@ 66-69 (lines=4) @@
63
	 * @since 4.3.0
64
	 */
65
	function jetpack_add_dashboard_sub_nav_item() {
66
		if ( ( new Status() )->is_offline_mode() || Jetpack::is_active() ) {
67
			add_submenu_page( 'jetpack', __( 'Dashboard', 'jetpack' ), __( 'Dashboard', 'jetpack' ), 'jetpack_admin_page', 'jetpack#/dashboard', '__return_null' );
68
			remove_submenu_page( 'jetpack', 'jetpack' );
69
		}
70
	}
71
72
	/**
@@ 78-80 (lines=3) @@
75
	 * @since 4.3.0
76
	 */
77
	function jetpack_add_settings_sub_nav_item() {
78
		if ( ( ( new Status() )->is_offline_mode() || Jetpack::is_active() ) && current_user_can( 'edit_posts' ) ) {
79
			add_submenu_page( 'jetpack', __( 'Settings', 'jetpack' ), __( 'Settings', 'jetpack' ), 'jetpack_admin_page', 'jetpack#/settings', '__return_null' );
80
		}
81
	}
82
83
	function add_fallback_head_meta() {