Code Duplication    Length = 3-4 lines in 2 locations

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

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