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

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