Code Duplication    Length = 13-15 lines in 2 locations

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

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

class.jetpack.php 1 location

@@ 3878-3892 (lines=15) @@
3875
		return true;
3876
	}
3877
3878
	function jetpack_menu_order( $menu_order ) {
3879
		$jp_menu_order = array();
3880
3881
		foreach ( $menu_order as $index => $item ) {
3882
			if ( $item != 'jetpack' ) {
3883
				$jp_menu_order[] = $item;
3884
			}
3885
3886
			if ( $index == 0 ) {
3887
				$jp_menu_order[] = 'jetpack';
3888
			}
3889
		}
3890
3891
		return $jp_menu_order;
3892
	}
3893
3894
	function admin_banner_styles() {
3895
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';