Code Duplication    Length = 13-15 lines in 2 locations

_inc/lib/admin-pages/class.jetpack-react-page.php 1 location

@@ 84-96 (lines=13) @@
81
		echo '</noscript>';
82
	}
83
84
	function jetpack_menu_order( $menu_order ) {
85
		$jp_menu_order = array();
86
87
		foreach ( $menu_order as $index => $item ) {
88
			if ( $item != 'jetpack' )
89
				$jp_menu_order[] = $item;
90
91
			if ( $index == 0 )
92
				$jp_menu_order[] = 'jetpack';
93
		}
94
95
		return $jp_menu_order;
96
	}
97
98
	function page_render() {
99
		/** This action is already documented in views/admin/admin-page.php */

class.jetpack.php 1 location

@@ 3942-3956 (lines=15) @@
3939
		return true;
3940
	}
3941
3942
	function jetpack_menu_order( $menu_order ) {
3943
		$jp_menu_order = array();
3944
3945
		foreach ( $menu_order as $index => $item ) {
3946
			if ( $item != 'jetpack' ) {
3947
				$jp_menu_order[] = $item;
3948
			}
3949
3950
			if ( $index == 0 ) {
3951
				$jp_menu_order[] = 'jetpack';
3952
			}
3953
		}
3954
3955
		return $jp_menu_order;
3956
	}
3957
3958
	function admin_banner_styles() {
3959
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';