Code Duplication    Length = 3-4 lines in 2 locations

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

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