Code Duplication    Length = 3-4 lines in 2 locations

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

@@ 57-60 (lines=4) @@
54
	 * @since 4.3.0
55
	 */
56
	function jetpack_add_dashboard_sub_nav_item() {
57
		if ( ( new Status() )->is_offline_mode() || Jetpack::is_active() ) {
58
			add_submenu_page( 'jetpack', __( 'Dashboard', 'jetpack' ), __( 'Dashboard', 'jetpack' ), 'jetpack_admin_page', 'jetpack#/dashboard', '__return_null' );
59
			remove_submenu_page( 'jetpack', 'jetpack' );
60
		}
61
	}
62
63
	/**
@@ 69-71 (lines=3) @@
66
	 * @since 4.3.0
67
	 */
68
	function jetpack_add_settings_sub_nav_item() {
69
		if ( ( ( new Status() )->is_offline_mode() || Jetpack::is_active() ) && current_user_can( 'edit_posts' ) ) {
70
			add_submenu_page( 'jetpack', __( 'Settings', 'jetpack' ), __( 'Settings', 'jetpack' ), 'jetpack_admin_page', 'jetpack#/settings', '__return_null' );
71
		}
72
	}
73
74
	function add_fallback_head_meta() {